Update Gulp config
This commit is contained in:
parent
0a938593a6
commit
6dabfac540
6 changed files with 32 additions and 14 deletions
|
@ -1,6 +1,6 @@
|
|||
gulp.task('fonts', function () {
|
||||
app.copy(
|
||||
config.bowerDir + '/font-awesome/fonts/*',
|
||||
config.outputDir + '/fonts'
|
||||
config.fonts.output
|
||||
);
|
||||
});
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
gulp.task('minify-prod-html', function () {
|
||||
gulp.src('output_prod/**/*.html')
|
||||
.pipe(plugins.htmlmin({ collapseWhitespace: true }))
|
||||
.pipe(plugins.htmlmin(config.htmlminp))
|
||||
.pipe(gulp.dest('output_prod'));
|
||||
});
|
||||
|
|
|
@ -3,7 +3,7 @@ gulp.task('scripts', function () {
|
|||
[
|
||||
config.bowerDir + '/jquery/dist/jquery.js',
|
||||
config.bowerDir + '/bootstrap-sass/assets/javascripts/bootstrap.js',
|
||||
config.assetsDir + '/' + config.jsPattern
|
||||
config.js.search
|
||||
],
|
||||
'site.js'
|
||||
);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
gulp.task('styles', function () {
|
||||
app.css([
|
||||
config.bowerDir + '/font-awesome/css/font-awesome.css',
|
||||
config.assetsDir + '/sass/site.sass'
|
||||
config.sass.source + '/site.sass'
|
||||
], 'site.css');
|
||||
});
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
gulp.task('watch', function () {
|
||||
plugins.refresh.listen();
|
||||
|
||||
gulp.watch(config.assetsDir + '/' + config.sassPattern, ['styles']);
|
||||
gulp.watch(config.assetsDir + '/' + config.jsPattern, ['scripts']);
|
||||
gulp.watch(config.sass.source + config.sass.search, ['styles']);
|
||||
gulp.watch(config.sass.source + config.scss.search, ['styles']);
|
||||
gulp.watch(config.js.source + config.js.search, ['scripts']);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue