enhanced-electron-react-boilerplate icon indicating copy to clipboard operation
enhanced-electron-react-boilerplate copied to clipboard

npm WARN deprecated [email protected]: babili has been renamed to babel-minify. Please update to babel-preset-minify

Open jy95 opened this issue 7 years ago • 4 comments

Hello,

Thanks for you work.

I tried today to test your projet, I got this warning

npm WARN deprecated [email protected]: babili has been renamed to babel-minify. Please update to babel-preset-minify

I have done a npm ls to find out which dependancies use it :

`-- [email protected]
  `-- [email protected]

PS: If you want to check out another dev dependancies , I use https://david-dm.org/pbarbiero/enhanced-electron-react-boilerplate?type=dev

jy95 avatar Aug 18 '17 17:08 jy95

Yes I need to update this, theres a lot of outdated deps and I want to move these projects to webpack 3.

Still trying to decide if I should switch over to uglifyjs-es or stick with babel-minify. Unfortunately butternut is no where near stable yet otherwise I think that would be my choice.

pbarbiero avatar Sep 14 '17 16:09 pbarbiero

It looks like uglify-es is the correct direction to go, especially with maturing webpack integration and plugins.

I am planning an update once webpack 4 and it's plugins mature.

pbarbiero avatar Mar 09 '18 13:03 pbarbiero

I did a quick & dirty webpack4 + other deps upgrade in https://github.com/pbarbiero/enhanced-electron-react-boilerplate/pull/15. This doesn't touch the minifier but it's probably easy to change it now.

nurpax avatar Jul 14 '18 22:07 nurpax

Latest version of my PR switches to uglify-es (this was easy, the latest webpack-uglifyjs-plugin defaults to uglify-es (AFAICT).

I did a quick bundle size comparison:

With old code (babili):

-rw-r--r--   1 janne  staff   33462 Jul 16 00:58 bundle.css
-rw-r--r--   1 janne  staff  204633 Jul 16 00:58 bundle.js
drwxr-xr-x   5 janne  staff     160 Jul 15 01:53 font
-rw-r--r--   1 janne  staff     227 Jul 16 00:58 index.html

with webpack-uglifyjs-plugin (uglify-es, my PR):

-rw-r--r--   1 janne  staff   33462 Jul 16 00:59 bundle.css
-rw-r--r--   1 janne  staff  205617 Jul 16 00:59 bundle.js
drwxr-xr-x   5 janne  staff     160 Jul 15 01:53 font
-rw-r--r--   1 janne  staff     227 Jul 16 00:59 index.html

The new minifier produces 1kb larger bundle. I didn't try tweaking any options for the minifier as this looked good enough for me.

nurpax avatar Jul 15 '18 22:07 nurpax