From c1c06064b7b348a17366337a468761fbe512e427 Mon Sep 17 00:00:00 2001 From: GanNing Date: Sun, 25 Jun 2017 14:00:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dhistory=E6=A8=A1=E5=BC=8F=20?= =?UTF-8?q?=E7=94=9F=E4=BA=A7=E7=8E=AF=E5=A2=83=E4=B8=8B=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: GanNing --- config/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/index.js b/config/index.js index 9178385b..b76f6a33 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: './', //生产环境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.