提交 9ed6b16d 编写于 作者: guangjun.yang's avatar guangjun.yang

static

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