You can achieve this by “requiring” CSS files through a separate entry . You will get something like this:
{ entry: { styles: glob('old_css/**/*.css'), // array of css files ... }, output: { filename: '[name].[chunkhash].js', ... }, module: { loaders: [ { test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader") }, ... ] }, plugins: [ new ExtractTextPlugin('[name].[chunkhash].css'), ... ], ... }
In addition to the CSS file, you will get a JavaScript file named for your style. However, you can ignore this.
source share