diff --git a/server.js b/server.js index 0e58347..5ebe950 100644 --- a/server.js +++ b/server.js @@ -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 },