Created
June 3, 2016 14:18
-
-
Save saltcod/dfe186e6985d8ad009d0ea2b537ca54f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Works! | |
// this does create a .min.css file | |
.pipe(filter('*.css')) | |
.pipe(gulpif(process.env.NODE_ENV == 'production', prefix("last 2 versions"))) | |
.pipe(replace(/\/\*\sline(.+?)(?=\*\/)\*\//g,'')) | |
# .pipe(replace(/fonts\/britco-icons.eot/g,'../../fonts/britco-icons.eot')) | |
.pipe replace "<%= STATIC_URL %>", TEMPLATE_DATA.STATIC_URL | |
.pipe(gulp.dest(dest)) | |
.pipe(debug()) | |
.pipe(cssmin()) | |
.pipe(rename({suffix: '.min'})) | |
.pipe(gulp.dest(dest)) | |
// Doesn't work | |
// Does not create a min.css file | |
.pipe(filter('*.css')) | |
.pipe(gulpif(process.env.NODE_ENV == 'production', prefix("last 2 versions"))) | |
.pipe(cssmin()) | |
.pipe(replace(/\/\*\sline(.+?)(?=\*\/)\*\//g,'')) | |
.pipe replace "<%= STATIC_URL %>", TEMPLATE_DATA.STATIC_URL | |
.pipe(gulp.dest(dest)) | |
.pipe(debug()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment