webpack.optimize.CommonsChunkPlugin optimizes common stylesheets to an unexpected file name
Author: LeechikitCreated Apr 29, 2016Updated Jan 24, 2017
when i use both "extract-text-webpack-plugin" and "webpack.optimize.CommonsChunkPlugin"
var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
plugins: [
new ExtractTextPlugin("css/[name].css"),
new webpack.optimize.CommonsChunkPlugin('js/common.js')
]
}i have multiple entrypoints and require the same style file,and after packaging,there is a common style file named common.js.css
how i can control the common style file's name or avoid optimizing style files to a common file ?
Source: petehunt/webpack-howto