var ExtractTextPlugin = require("extract-text-webpack-plugin")
module.exports = {
entry:{
'entry1': './a.js',
'entry2': './b.js',
'entry3': './c.js',
'entry4': './d.js'
},
module: {
loaders: [
{
test: /\.css$/, loader: ExtractTextPlugin.extract('css-loader')
}
]
},
plugins: [
new ExtractTextPlugin('[name].css')
]
试下extract-text-webpack-plugin,这个应该就可以将css发布到到指定文件中的哦 var ExtractTextPlugin = require("extract-text-webpack-plugin")module.exports = { entry:{ 'entry1': './a.js', 'entry2': './b.js', 'entry3': './c.js'