Commit 80a28173 authored by Pan's avatar Pan

refine assets path config

parent f1aa01a2
...@@ -7,9 +7,9 @@ module.exports = { ...@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment