diff --git a/vue.config.js b/vue.config.js index 61f43e5..95bc4a9 100644 --- a/vue.config.js +++ b/vue.config.js @@ -5,7 +5,8 @@ function resolve(dir) { } module.exports = { - publicPath: './', + // publicPath: './', + publicPath: process.env.NODE_ENV === 'production' ? '/cool-website' : './', outputDir: 'dist', devServer: { open: true, // Automatically pop up the browser page