Description
Package version: 0.4.0
Node version: 6.8.0
So I've updated to webpack 4 and instantly run into extract-text-webpack-plugin incompatibility, and guys on stackoverflow insisted on switching in favor of this module. My use case is almost exactly as described in documentation with the difference being that there's sass-loader in the end of chain as well. All the rest is non-essential, the error is reproducable even with "zero" config.
My project is React-based, with a set of components each having it's own scss file, required inside each component individually, including the Root component - the one which is rendered to DOM inside my entry file (say /src/index.js
, has require('index.scss')
).
What happens on build stage is kinda in line with expectations - all the css got exported to style.css
(despite it produces extra files like style.main.js
for no obvious reason). The problem is that that my entrypoint javascript never got executed when the bundle is loaded. So there's no warnings or errors, everything compiles smoothly, the files (main.js
and style.css
) are delivered to the browser, but the code from index.js
is not executed, so I just stare at a blank html template.
In the end I switched back to extract-text-webpack-plugin@next
cause I couldn't overcome that issue. Any ideas what causes that?