Public path only in prod

This commit is contained in:
2022-01-29 19:17:27 +03:00
parent a7459b7557
commit 2ede037941
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
module.exports = {
publicPath: '/vue-three-d-mockup/',
publicPath: process.env.NODE_ENV === 'production' ? '/vue-three-d-mockup/' : '/',
chainWebpack: (config) => {
config.module
.rule('file-loader')