1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-03 23:19:49 +08:00

Merge 5ced396fa34ab3d493094ef8e1f17fd1df5a58be into f1aa01a233ddfb05aaaa7186ccec59eb43cfa621

This commit is contained in:
HuChundong 2017-06-25 06:09:07 +00:00 committed by GitHub
commit 336abef9bb

View File

@ -8,8 +8,8 @@ module.exports = {
index: path.resolve(__dirname, '../dist/index.html'),
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: '',
assetsPublicPath: './', //生产环境assetsPublicPath: '/'
staticPath:'./', //生产环境 staticPath:''
assetsPublicPath: process.env.NODE_ENV === 'production' ? '/' : './', //生产环境assetsPublicPath: '/'
staticPath:process.env.NODE_ENV === 'production' ? '' : './', //生产环境 staticPath:''
productionSourceMap: true,
// Gzip off by default as many popular static hosts such as
// Surge or Netlify already gzip all static assets for you.