Open
Description
I had to mix Prototype and jQuery and for some reason Prototype could not be uglifyed.
I created a compressed version of Prototype with no uglify (just remove comments and space)
The output shows that it uses the minSrc file but it uglify it again during processing which breaks the code.
module.exports = {
bundle: {
vendor: {
scripts: [
'./path/to/jquery.js',
{
src: './bower_components/jquery/dist/prototype.js',
minSrc: './bower_components/jquery/dist/prototype.compressed.js'
}
],
options: {
rev: false, // do not add #hash to filename
uglify: true // uglify js code
useMin: true // use pre-compressed src when available (needed for Prototype)
}
}
}
}
in Gulpfile I just got the bundle.config.js and piped bundle() so nothing fancy at all.