Account for null values in config.basePath
Instead of reading them as a literal string 'null' it now blanks
them out. Otherwise we were getting errors like "publicnull does
not exist"! 😬
This commit is contained in:
parent
ae1aacd17c
commit
be12c945fa
1 changed files with 5 additions and 2 deletions
|
@ -34,12 +34,15 @@ let options = {
|
|||
metaInfo: {
|
||||
title: 'Seance',
|
||||
script: [
|
||||
{ type: 'text/javascript', src: config.basePath + '/app.js' },
|
||||
{
|
||||
type: 'text/javascript',
|
||||
src: (config.basePath || '') + '/app.js'
|
||||
},
|
||||
],
|
||||
},
|
||||
extractCSS: true,
|
||||
cssOutputPath: '/css/styles.css',
|
||||
publicPath: 'public' + config.basePath,
|
||||
publicPath: 'public' + (config.basePath || ''),
|
||||
compilerConfig: {
|
||||
// custom webpack config
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue