electron-webpack 1.13.0 Use latest UglifyJsPlugin in production
up vote
0
down vote
favorite
I have an electron + webpack + react project that is stuck at Babel 6 and Webpack 3 until I can figure out how to upgrade to Babel 7. I'm getting an error with UglifyJs in the production build that appears to be the old uglify-js plugin bundled with webpack 3.x not able to process some es6. I've seen guides on how to upgrade the UglifyJsPlugin and run webpack without the -p switch which should handle the es6 fine.
However, this project is using electron-webpack 1.13.0 and I can't figure out how to do the same with it's CLI.
Does anyone know how to get electron-webpack to either use the new UglifyJsPlugin in production, or how to customize the webpack CLI command?
webpack electron uglifyjs
add a comment |
up vote
0
down vote
favorite
I have an electron + webpack + react project that is stuck at Babel 6 and Webpack 3 until I can figure out how to upgrade to Babel 7. I'm getting an error with UglifyJs in the production build that appears to be the old uglify-js plugin bundled with webpack 3.x not able to process some es6. I've seen guides on how to upgrade the UglifyJsPlugin and run webpack without the -p switch which should handle the es6 fine.
However, this project is using electron-webpack 1.13.0 and I can't figure out how to do the same with it's CLI.
Does anyone know how to get electron-webpack to either use the new UglifyJsPlugin in production, or how to customize the webpack CLI command?
webpack electron uglifyjs
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have an electron + webpack + react project that is stuck at Babel 6 and Webpack 3 until I can figure out how to upgrade to Babel 7. I'm getting an error with UglifyJs in the production build that appears to be the old uglify-js plugin bundled with webpack 3.x not able to process some es6. I've seen guides on how to upgrade the UglifyJsPlugin and run webpack without the -p switch which should handle the es6 fine.
However, this project is using electron-webpack 1.13.0 and I can't figure out how to do the same with it's CLI.
Does anyone know how to get electron-webpack to either use the new UglifyJsPlugin in production, or how to customize the webpack CLI command?
webpack electron uglifyjs
I have an electron + webpack + react project that is stuck at Babel 6 and Webpack 3 until I can figure out how to upgrade to Babel 7. I'm getting an error with UglifyJs in the production build that appears to be the old uglify-js plugin bundled with webpack 3.x not able to process some es6. I've seen guides on how to upgrade the UglifyJsPlugin and run webpack without the -p switch which should handle the es6 fine.
However, this project is using electron-webpack 1.13.0 and I can't figure out how to do the same with it's CLI.
Does anyone know how to get electron-webpack to either use the new UglifyJsPlugin in production, or how to customize the webpack CLI command?
webpack electron uglifyjs
webpack electron uglifyjs
asked Nov 5 at 18:01
Novaterata
1,976826
1,976826
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53159787%2felectron-webpack-1-13-0-use-latest-uglifyjsplugin-in-production%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password