aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps2015-05-07 16:50:44 +0300
committerCamil Staps2015-05-07 16:50:44 +0300
commitb9cd9394b2ac76fce7d247a76bd63d0b60517fbf (patch)
tree3f3bbf8a9551f97ed6a3ba9b910aaa99161c0c31
parentRegister form + validation (diff)
Gulpfile with CSS from src
-rw-r--r--gulpfile.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 3c3e596..595e542 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -57,7 +57,11 @@ gulp.task('fonts', function() {
gulp.task('styles', function() {
- var baseContent = '@import "./bower_components/bootstrap/less/bootstrap.less";@import "./bower_components/bootswatch/' + bootswatch_theme + '/variables.less";@import "./bower_components/bootswatch/' + bootswatch_theme + '/bootswatch.less";@import "./bower_components/bootstrap/less/utilities.less";';
+ var baseContent =
+ '@import "./bower_components/bootstrap/less/bootstrap.less";' +
+ '@import "./bower_components/bootswatch/' + bootswatch_theme + '/variables.less";' +
+ '@import "./bower_components/bootswatch/' + bootswatch_theme + '/bootswatch.less";' +
+ '@import "./bower_components/bootstrap/less/utilities.less";';
var isBootswatchFile = function(file) {
var suffix = 'bootswatch.less';
@@ -73,7 +77,8 @@ gulp.task('styles', function() {
var fileList = [
'./bower_components/bootswatch/' + bootswatch_theme + '/bootswatch.less',
- './bower_components/fontawesome/css/font-awesome.css'
+ './bower_components/fontawesome/css/font-awesome.css',
+ './src/css/style.less'
];
var dst = './build/assets/css';
@@ -107,6 +112,7 @@ gulp.task('styles', function() {
.pipe(rename({suffix: '.min'}))
.pipe(minifycss());
})))
+ .pipe(minifycss())
.pipe(gulp.dest(dst));
});