-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Webpack 4 cont'd #4481
Webpack 4 cont'd #4481
Conversation
- [x] Utilize webpack 4 development and production modes - [x] Upgrade webpack dev server - [x] Webpack 4 compatible release of thread-loader - [x] Webpack 4 compatible release of HtmlWebpackPlugin - [x] Webpack 4 compatible release of SwPrecacheWebpackPlugin - [x] Webpack 4 compatible release of WebpackManifestPlugin - [x] Update README - [x] Update WebpackDevServerUtils - [x] Update InterpolateHtmlPlugin - [x] Update ModuleScopePlugin - [x] Update WatchMissingNodeModulesPlugin - [x] Move UglifyJS options to webpack 4 optimize - [x] Move InterpolateHtmlPlugin to make it tapable on HtmlWebpackPlugin - [x] vendor splitting via splitChunks.splitChunks (https://twitter.com/wSokra/status/969633336732905474) - [x] long term caching via splitChunks.runtimeChunk (https://twitter.com/wSokra/status/969679223278505985) - [x] Make sure process.env.NODE_ENV is proxied correctly to `react-error-overlay` - [x] Implicit webpack.NamedModulesPlugin in dev config as its default in webpack 4 - [x] Disable webpack performance hints as we have our own filesize reporter - [x] Replace ExtractTextPlugin with MiniCssExtractPlugin - [x] Switch to css whole file minification via OptimizeCSSAssetsPlugin rather than per module css minification to gain performance
Map (css|sass|scss) modules to identity-obj-proxy in jest (facebook#4419)
I saw the timeout error from CI when running my test locally as well. but hey at least the yarn build succeeded |
So there are two issues here, as gaearon said the CSS is injected differently. MiniCssExtractPlugin writes css to a [name].chunk.css and uses link tag: The second issue is very puzzling, when the CSS is not part of the vendors chunk (eg 27.e47f64ba.chunk.css) when running the mocha test the dynamic import (SassModuleInclusion.js) hangs causing a timeout. |
@bugzpodder Do you have a fix for the first issue? |
I kinda of a fix for both. by kinda I mean not ideal. |
Thanks folks. I merged @bugzpodder's follow up PR to master. |
Work seems to have stalled on #4077 so I'm continuing it here. This applies andriijas#3.