From 1c6aa48b83533d5dae04b597ab5fa55cb5bf6678 Mon Sep 17 00:00:00 2001 From: Xevion Date: Sun, 16 Aug 2020 15:48:27 -0500 Subject: [PATCH] fix publicPath incorrect on local dev server --- vue.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vue.config.js b/vue.config.js index 65ff1a5..f211e8a 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,6 +1,6 @@ module.exports = { outputDir: './docs/', - publicPath: '/history-of-robotics/', + publicPath: process.env.NODE_ENV === 'production' ? '/history-of-robotics/' : '/', chainWebpack: config => { config.module .rule('vue')