You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I think there is a bug when uglify and useMin are used together. The uglify option forces uglification no matter what. What should happen is what you describe: useMin should override the uglify option if minSrc is defined
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.
in Gulpfile I just got the bundle.config.js and piped bundle() so nothing fancy at all.
The text was updated successfully, but these errors were encountered: