1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-04-06 03:57:53 +08:00

refine assets path config

This commit is contained in:
Pan 2017-06-26 09:57:24 +08:00
parent f1aa01a233
commit 80a281733a

View File

@ -7,9 +7,9 @@ module.exports = {
prodEnv: require('./prod.env'), prodEnv: require('./prod.env'),
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: '', assetsSubDirectory: 'static',
assetsPublicPath: './', //生产环境assetsPublicPath: '/' assetsPublicPath: '/',
staticPath:'./', //生产环境 staticPath:'' staticPath:'./',
productionSourceMap: true, productionSourceMap: true,
// Gzip off by default as many popular static hosts such as // Gzip off by default as many popular static hosts such as
// Surge or Netlify already gzip all static assets for you. // Surge or Netlify already gzip all static assets for you.