A couple of small fixes after #15
This commit is contained in:
parent
d904f8ee22
commit
f80f3b5a9e
|
@ -10,7 +10,7 @@ var config = {
|
||||||
sassPattern: './sass/**/*.scss',
|
sassPattern: './sass/**/*.scss',
|
||||||
production: !!plugins.util.env.production,
|
production: !!plugins.util.env.production,
|
||||||
sourceMaps: !plugins.util.env.production,
|
sourceMaps: !plugins.util.env.production,
|
||||||
liveReload: !plugins.util.env.production,
|
liveReload: !plugins.util.env.production
|
||||||
};
|
};
|
||||||
|
|
||||||
var app = {};
|
var app = {};
|
||||||
|
@ -25,12 +25,12 @@ app.addStyle = function(paths, filename) {
|
||||||
.pipe(plugins.if(config.sourceMaps, plugins.sourcemaps.write('.')))
|
.pipe(plugins.if(config.sourceMaps, plugins.sourcemaps.write('.')))
|
||||||
.pipe(gulp.dest(config.assetsDir + '/css'))
|
.pipe(gulp.dest(config.assetsDir + '/css'))
|
||||||
.pipe(plugins.if(config.liveReload, livereload()));
|
.pipe(plugins.if(config.liveReload, livereload()));
|
||||||
}
|
};
|
||||||
|
|
||||||
app.copy = function(srcFiles, outputDir) {
|
app.copy = function(srcFiles, outputDir) {
|
||||||
gulp.src(srcFiles)
|
gulp.src(srcFiles)
|
||||||
.pipe(gulp.dest(outputDir));
|
.pipe(gulp.dest(outputDir));
|
||||||
}
|
};
|
||||||
|
|
||||||
gulp.task('fonts', function () {
|
gulp.task('fonts', function () {
|
||||||
// Copy fonts from bower_components into source/asset/fonts.
|
// Copy fonts from bower_components into source/asset/fonts.
|
||||||
|
|
Loading…
Reference in a new issue