解决方案如下 ,https://doc.webpack-china.org/plugins/extract-text-webpack-plugin/
new ExtractTextPlugin({
filename: (getPath) => {
return getPath('css/[name].css').replace('css/js', 'css');
},
allChunks: true
})
解决方案如下 ,https://doc.webpack-china.org/plugins/extract-text-webpack-plugin/
new ExtractTextPlugin({
filename: (getPath) => {
return getPath('css/[name].css').replace('css/js', 'css');
},
allChunks: true
})
本文标题:webpack css 报错 Cannot read prope
本文链接:https://www.haomeiwen.com/subject/josdoxtx.html
网友评论