mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
Set undefined instead of null for web config to work
This commit is contained in:
parent
48a3db7354
commit
7be8302bc2
@ -28,13 +28,13 @@ function makeConfig() {
|
||||
mode: isProduction ? 'production' : 'development',
|
||||
context: resolveAppDir(),
|
||||
entry: isElectron ? appConfig.electron.entry : appConfig.dev.entry,
|
||||
externals: isElectron ? externals : null,
|
||||
externals: isElectron ? externals : undefined,
|
||||
target: isElectron ? 'electron-renderer' : 'web',
|
||||
output: {
|
||||
path: isElectron ? resolveAppDir('./dist/electron') : resolveAppDir('./dist'),
|
||||
filename: '[name].js',
|
||||
// publicPath: appConfig.dev.assetsPublicPath,
|
||||
libraryTarget: isElectron ? 'commonjs2' : null
|
||||
libraryTarget: isElectron ? 'commonjs2' : undefined
|
||||
},
|
||||
devtool: !isProduction ? 'cheap-module-eval-source-map' : '',
|
||||
module: {
|
||||
|
Loading…
Reference in New Issue
Block a user