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:
Hippo 2021-07-26 22:43:25 +05:30
parent ae1aacd17c
commit be12c945fa

View file

@ -34,12 +34,15 @@ let options = {
metaInfo: { metaInfo: {
title: 'Seance', title: 'Seance',
script: [ script: [
{ type: 'text/javascript', src: config.basePath + '/app.js' }, {
type: 'text/javascript',
src: (config.basePath || '') + '/app.js'
},
], ],
}, },
extractCSS: true, extractCSS: true,
cssOutputPath: '/css/styles.css', cssOutputPath: '/css/styles.css',
publicPath: 'public' + config.basePath, publicPath: 'public' + (config.basePath || ''),
compilerConfig: { compilerConfig: {
// custom webpack config // custom webpack config
}, },