在webpack.config.js中執行runtime時沒有runtime文件
//?因為webpack升級到4.3.包含contenthash關鍵字段,
??//?所以在ExtractPlugin中不能使用contenthash
??//?使用md5:contenthash:hex:8?替代?參數為靜態文件名稱
??config.plugins.push(
????new?ExtractPlugin('styles.[md5:contenthash:hex:8].css'),
????//?在webpack4中??CommonsChunkPlugin(webpack3.0版本)改為SplitChunksPlugin
????new?webpack.optimize.SplitChunksPlugin({
??????name:'vendor'
????}),
????new?webpack.optimize.SplitChunksPlugin({
??????name:'runtime'
????})
??)
這是哪里出問題了嗎,本來是按照課程走的,但是因為webpack升級的原因,改了命令。
最后打包的時候沒有runtime文件