Browse Source

修改打包路径

master
ltlzx 4 years ago
parent
commit
ef99646988
  1. 5
      build/utils.js

5
build/utils.js

@ -58,7 +58,8 @@ exports.cssLoaders = function(options) {
if (options.extract) { if (options.extract) {
return ExtractTextPlugin.extract({ return ExtractTextPlugin.extract({
use: loaders, use: loaders,
fallback: 'vue-style-loader' fallback: 'vue-style-loader',
publicPath: '../../'
}) })
} else { // 最后加载vue-style-loader 解析.vue中的css代码 } else { // 最后加载vue-style-loader 解析.vue中的css代码
return ['vue-style-loader'].concat(loaders) return ['vue-style-loader'].concat(loaders)
@ -138,4 +139,4 @@ exports.createNotifierCallback = () => {
icon: path.join(__dirname, 'logo.png') icon: path.join(__dirname, 'logo.png')
}) })
} }
} }

Loading…
Cancel
Save