-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Producing minimized bundle #1
Comments
Could be an UglifyJs problem to digest ESNext syntax? I'm trying to figure this out, maybe we can consider to add https://github.com/babel/minify instead of the standard UglifyJs minifier called by the Or maybe another solution could be transpiling to ES5, but I need to test, and of course after that we will need the |
I did try with ES5 but somehow anything I tried also produced some error. In the end I think it wasn't even transpiling. I'm not sure how to do that properly. I've mostly written TS myself 😞 |
Did you try to minify with the I found that it works as expected with this const path = require('path');
const webpack = require('webpack');
const MinifyPlugin = require('babel-minify-webpack-plugin');
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'src'),
filename: 'bundle.js'
},
plugins: [
new MinifyPlugin()
]
}; NOTE: I think we can't use the |
With
I tried with |
Yeah, I'm seeing the same problem. Thank you for your upgrades and info. Let's leave this issue open until we found a solution. |
When I run
webpack --optimize-minimize
I get error:That's this line:
Any ideas?
The text was updated successfully, but these errors were encountered: