Commit 6eab44f7 authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[FEATURE] make js pipeline more configurable

parent cb0aa747
......@@ -53,10 +53,10 @@ module.exports = function() {
.pipe(source(file))
.pipe(buffer())
.pipe(plugins.sourcemaps.init({loadMaps: true}))
.pipe(plugins.uglify())
.pipe(plugins.if(config.js.pipeline.uglify, plugins.uglify()))
.on('error', console.log)
.pipe(rename({
extname: '.bundled.min.js',
extname: config.js.pipeline.renameToDotMin ? '.bundled.min.js' : '.bundled.js',
dirname: ''
}))
.pipe(plugins.checkFilesize({
......
......@@ -51,10 +51,10 @@ module.exports = function() {
.pipe(source(file))
.pipe(buffer())
.pipe(plugins.sourcemaps.init({loadMaps: true}))
.pipe(plugins.uglify())
.pipe(plugins.if(config.js.pipeline.uglify, plugins.uglify()))
.on('error', console.log)
.pipe(rename({
extname: '.bundled.min.js',
extname: config.js.pipeline.renameToDotMin ? '.bundled.min.js' : '.bundled.js',
dirname: ''
}))
.pipe(plugins.checkFilesize({
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment