update webpack & support Affix
update webpack & support Affix
This commit is contained in:
parent
9e74a856f6
commit
fcf37f49ee
4 changed files with 5 additions and 6 deletions
|
@ -98,10 +98,10 @@ module.exports = {
|
|||
}
|
||||
},
|
||||
plugins: [
|
||||
new ExtractTextPlugin({ filename: '[name].css', disable: false, allChunks: true }),
|
||||
// new ExtractTextPlugin({ filename: '[name].css', disable: false, allChunks: true }),
|
||||
// new ExtractTextPlugin("[name].css",{ allChunks : true,resolve : ['modules'] }), // 提取CSS
|
||||
// https://doc.webpack-china.org/plugins/commons-chunk-plugin/
|
||||
new webpack.optimize.CommonsChunkPlugin({ name: 'vendors', filename: 'vendor.bundle.js' })
|
||||
new webpack.optimize.CommonsChunkPlugin({ name: 'vendors', filename: 'vendor.js' })
|
||||
// new webpack.optimize.CommonsChunkPlugin('vendors', 'vendors.js'), // 提取第三方库
|
||||
]
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue