提交 9452ab2c 编写于 作者: guangjun.yang's avatar guangjun.yang

ExtractTextPlugin

上级 bd0f6012
......@@ -25,7 +25,7 @@ exports.cssLoaders = function(options) {
// (which is the case during production build)
if (options.extract) {
return ExtractTextPlugin.extract('vue-style-loader', sourceLoader)
return ExtractTextPlugin.extract('vue-style-loader', sourceLoader, '../../')
} else {
return ['vue-style-loader', sourceLoader].join('!')
}
......
......@@ -9,7 +9,7 @@ module.exports = {
},
index: path.resolve(__dirname, '../dist/index.html'),
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: './static',
assetsSubDirectory: 'static',
assetsPublicPath: './',
productionSourceMap: false,
// Surge or Netlify already gzip all static assets for you.
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册