Created
June 7, 2016 20:42
-
-
Save patrickgrey/ea585862c5f506ebfe2048b7d762045d to your computer and use it in GitHub Desktop.
Gulp UnCSS ignore regex for bootstrap modal
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
gulp.task('uncss', () => { | |
return gulp.src([ | |
'dist/styles/main.css' | |
]) | |
.pipe(uncss({ | |
html: [ | |
'http://localhost:9000/' | |
], | |
ignore: [ /\.modal/] | |
})) | |
.pipe(gulp.dest('dist/styles/uncss/')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment