We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ef56a9 commit 09ba1feCopy full SHA for 09ba1fe
vue.config.js
@@ -12,10 +12,12 @@ const path = require('path');
12
const vueUtils = require('./src/setup-utils/vue-config-utils');
13
const BASE_URL_PLACEHOLDER = require('./bin/baseUrlPlaceholder');
14
15
+const isDev = process.env.NODE_ENV === 'development';
16
+
17
module.exports = vueUtils({
18
// we are setting a hard public path to the placeholder template.
19
// after the build is done, we will replace this with the BASE_URL env the user specified.
- publicPath: process.env.NODE_ENV === 'development' ? undefined : BASE_URL_PLACEHOLDER,
20
+ publicPath: isDev ? undefined : BASE_URL_PLACEHOLDER,
21
pages: {
22
index: {
23
entry: 'app/main.js',
0 commit comments