From 42f365535d0ab7af6d741087b5335697df8a1153 Mon Sep 17 00:00:00 2001 From: Pan Date: Mon, 8 May 2017 23:32:36 +0800 Subject: [PATCH] add notes --- config/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/index.js b/config/index.js index 36bcd68b..9178385b 100644 --- a/config/index.js +++ b/config/index.js @@ -8,8 +8,8 @@ module.exports = { index: path.resolve(__dirname, '../dist/index.html'), assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: '', - assetsPublicPath: './', - staticPath:'./', + assetsPublicPath: './', //生产环境assetsPublicPath: '/' + staticPath:'./', //生产环境 staticPath:'' productionSourceMap: true, // Gzip off by default as many popular static hosts such as // Surge or Netlify already gzip all static assets for you.