Skip to content
This repository was archived by the owner on May 12, 2020. It is now read-only.

Commit ece4b4a

Browse files
committed
build: correct publicPath in prod mode
1 parent 2a09706 commit ece4b4a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

vue.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ const path = require('path')
22
const PATH = require('./config/path')
33

44
module.exports = {
5+
publicPath: process.env.NODE_ENV === 'production'
6+
? '/admin-template/'
7+
: '/',
8+
productionSourceMap: false, // turn off source map
59
configureWebpack: {
610
resolve: {
711
alias: {

0 commit comments

Comments
 (0)