mirror of
https://github.com/frappe/books.git
synced 2025-02-03 20:48:29 +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',
|
mode: isProduction ? 'production' : 'development',
|
||||||
context: resolveAppDir(),
|
context: resolveAppDir(),
|
||||||
entry: isElectron ? appConfig.electron.entry : appConfig.dev.entry,
|
entry: isElectron ? appConfig.electron.entry : appConfig.dev.entry,
|
||||||
externals: isElectron ? externals : null,
|
externals: isElectron ? externals : undefined,
|
||||||
target: isElectron ? 'electron-renderer' : 'web',
|
target: isElectron ? 'electron-renderer' : 'web',
|
||||||
output: {
|
output: {
|
||||||
path: isElectron ? resolveAppDir('./dist/electron') : resolveAppDir('./dist'),
|
path: isElectron ? resolveAppDir('./dist/electron') : resolveAppDir('./dist'),
|
||||||
filename: '[name].js',
|
filename: '[name].js',
|
||||||
// publicPath: appConfig.dev.assetsPublicPath,
|
// publicPath: appConfig.dev.assetsPublicPath,
|
||||||
libraryTarget: isElectron ? 'commonjs2' : null
|
libraryTarget: isElectron ? 'commonjs2' : undefined
|
||||||
},
|
},
|
||||||
devtool: !isProduction ? 'cheap-module-eval-source-map' : '',
|
devtool: !isProduction ? 'cheap-module-eval-source-map' : '',
|
||||||
module: {
|
module: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user