This repository was archived by the owner on Nov 5, 2019. It is now read-only.
This repository was archived by the owner on Nov 5, 2019. It is now read-only.
Ability to minify raw files #1
Closed
Description
script-loader uses raw-loader, so the require()'ed script does not undergo any processing.
It would be nice if the webpack --optimize-minimize would compress scripts loaded with script-loader.
I started toying with a 'minscript-loader' using uglify-js, which is pretty easy https://github.com/mishoo/UglifyJS2#the-simple-way
but I end up duplicating the code from script loader anyways, so there should be a better way.
Metadata
Metadata
Assignees
Labels
No labels