gulp-polymin2
v1.0.2
Published
Optimize polymer 2 components with cssclean and babel transpiler
Downloads
8
Maintainers
Readme
gulp-polymin2
Optimize polymer 2 components with cssclean and babel transpiler
Installation
Install package with NPM and add it to your development dependencies:
npm install --save-dev gulp-polymin2
Usage
var polymin = require('gulp-polymin2');
gulp.task('compress', function() {
return gulp.src('src/*.html')
.pipe(polymin())
.pipe(gulp.dest('dist'));
});
var polymin = require('gulp-polymin2');
gulp.task('compress', function() {
return gulp.src('src/*.html')
.pipe(polymin({
babelPressets: 'es2015'
}))
.pipe(gulp.dest('dist'));
});
Options
babelOptions
object with babel options default:{ presets: "babili" }
cssOptions
object with cssclean options default:{}
jsOptions
object with uglifyjs options default:null
Obs.: If any option is null
, it will not be applied