pingyuanchen / webpack-uglify-js-plugin Goto Github PK
View Code? Open in Web Editor NEWIncremental Uglify JS for webpack
Incremental Uglify JS for webpack
As the title, {output : {comments:false}}
and {comments:false}
is not work in my project, webpack 2.2.0
Webpack compile process gets killed for example on AWS EC2 micro instance. Here is a question about it, it says that the plugin requires too much memory http://stackoverflow.com/questions/30747314/webpack-uglify-plugin-returns-killed-on-ubuntu
So how can we know how much memory the plugin uses?
https://github.com/pingyuanChen/webpack-uglify-js-plugin/blob/master/index.js#L68-L76
你好。
从这段代码来看,读取缓存文件是不考虑option.sourceMap
的,所以如果前后两次uglify如果设置的option.sourceMap
不同,是否会有问题?
I am calling this plugin as following:
new webpack.optimize.UglifyJsPlugin({
compressor: {
warnings: false,
pure_getters: true,
unsafe: true,
unsafe_comps: true,
screw_ie8: true
}
}),
I end up that this plugin remove "!important" css property .
unsafe
, unsafe_comps
, ... or something else) ?it does not seem to be supported now.
I mean it should always be true.
Does this library not support preamble
?
new webpackUglifyJsPlugin({cacheFolder: __dirname, preamble: '// should be displayed on top of file'})
I am failing to get the banner
When running Webpack the current error is returned:
_new webpack.optimize.UglifyJsPlugin({
cacheFolder: path.resolve(_dirname, 'public/cached_uglify/'),
debug: true,
minimize: true,
sourceMap: false,
output: {
comments: false
},
compressor: {
warnings: false
}
})
I believe it to be just the let variable and probably an easy fix but I could not find it after googling different terms, Any help would be appreciated.
Thank you
(I can make a repo if needed)
new webpack.optimize.UglifyJsPlugin({
cacheFolder: path.resolve(__dirname, 'public/cached_uglify/'),
debug: true,
minimize: true,
sourceMap: false,
output: {
comments: false
},
compressor: {
warnings: false
}
})
Setup in webpack.config.js
new webpack.optimize.UglifyJsPlugin({ cacheFolder: path.resolve(__dirname, 'public/cached_uglify/'), debug: true, minimize: true, sourceMap: false, output: { comments: false }, compressor: { warnings: false } })
Does the following actually have an effect? I have seen it in examples, but can not find any documentation on it:
new webpack.optimize.UglifyJsPlugin({
mangle: false,
output: {
comments: false,
ascii_only: true
},
compress: {
warnings: false
}
}),
It looks like this is a newer and faster version of an UglifyJS plugin, so I'm very interested to know more. What are the main differences between this and webpack.optimize.UglifyJsPlugin
?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.