Repository navigation
Replace rollup with webpack - #577
Conversation
119KB -> 159KB
159KB -> 149KB
comments: false doesn’t seem to work
This reverts commit 5af2db3159fe799acccc822d816654b2ac4ab597.
149KB -> 129KB
| "build": "webpack", | ||
| "watch": "webpack --watch", | ||
| "watch:sourcemap": "webpack --watch --devtool eval-cheap-module-source-map", | ||
| "reduce-size": "babel --out-dir . --no-comments extension/*.js", |
There was a problem hiding this comment.
Can we have this in the webpack config instead?
There was a problem hiding this comment.
Oh, I see you originally had that, why did you revert it?
There was a problem hiding this comment.
It just wasn't applied :(
It might be a babel or babel-loader bug. That'd be its right place
There was a problem hiding this comment.
Why not use webpack.optimize.UglifyJsPlugin to strip comments?
There was a problem hiding this comment.
Ah true. That's weird how the options weren't working though. Maybe babelrc: false needs to be explicitely specified despite not existing anyway? Might be worth considering using babili too.
|
Discovered a weird problem. On master the "Hide other users starring/forking your repos" setting is checked for me, but when running this PR it's not. |
|
My bad. Part of an incomplete f393565. Fix coming |
I was growing tired of rollup's over-modularity, so I thought of just using webpack.
Pros:
In watch mode the difference is higher and with sourcemaps enable the difference is 6x.
Cons:
babelstep onreleaseto strip comments (otherwise it'd be 149KB)