問題展示:
如圖
解決方法:
在build檔案夾中下util.js,加入publicPath: '…/…/'即可解決
if (options.extract) {
return ExtractTextPlugin.extract({
use: loaders,
fallback: 'vue-style-loader',
publicPath: '../../',
})
} else {
return ['vue-style-loader'].concat(loaders)
}