Skip to content

Commit

Permalink
gulp creates a new clientside bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolerd committed Aug 18, 2015
1 parent 6d0fd71 commit 8af27e9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
9 changes: 8 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,20 @@ gulp.task('build:scripts:vendor:ckeditor', function () {


gulp.task('build:styles', function () {
gulp.src(pkginfo.assets.styles.entries).pipe(stylus({
gulp.src(pkginfo.assets.styles.entries[0]).pipe(stylus({
compress: true,
'include css': true,
include: pkginfo.stylus.includes
}))
.pipe(rename('bundle.css'))
.pipe(gulp.dest(pkginfo.dist.path + pkginfo.dist.styles));
gulp.src(pkginfo.assets.styles.entries[1]).pipe(stylus({
compress: true,
'include css': true,
include: pkginfo.stylus.includes
}))
.pipe(rename('client-bundle.css'))
.pipe(gulp.dest(pkginfo.dist.path + pkginfo.dist.styles))
});


Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
},
"styles": {
"entries": [
"./project/static/src/css/main.styl"
"./project/static/src/css/main.styl",
"./project/static/src/css/main-client.styl"
],
"watches": [
"./project/static/src/css/**/*.styl"
Expand Down
Empty file.
1 change: 1 addition & 0 deletions project/static/src/css/main-client.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import 'base-client.styl'

0 comments on commit 8af27e9

Please sign in to comment.