From d66d29b88fbf359c388406c16b2cd408aa92fa0a Mon Sep 17 00:00:00 2001 From: Jason Cheng Date: Thu, 14 Sep 2017 13:46:15 +1000 Subject: [PATCH 1/2] Add dynamic directory in production --- template/config/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/config/index.js b/template/config/index.js index 196da1f..83ad165 100644 --- a/template/config/index.js +++ b/template/config/index.js @@ -7,7 +7,7 @@ module.exports = { index: path.resolve(__dirname, '../dist/index.html'), assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', - assetsPublicPath: '/', + assetsPublicPath: './', productionSourceMap: true, // Gzip off by default as many popular static hosts such as // Surge or Netlify already gzip all static assets for you. From 0eceeacc5cf58dc5c5616d3e427587c57c4d5499 Mon Sep 17 00:00:00 2001 From: Jason Cheng Date: Thu, 14 Sep 2017 13:48:20 +1000 Subject: [PATCH 2/2] Add htmlWebpackPlugin if IE --- template/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/index.html b/template/index.html index 7a7c6ad..b7a9859 100644 --- a/template/index.html +++ b/template/index.html @@ -7,7 +7,7 @@ {{ name }} - +