mirror of
https://github.com/frappe/books.git
synced 2024-11-13 00:46:28 +00:00
Filter out falsy plugins
This commit is contained in:
parent
82f769dcfe
commit
40bc76b713
@ -114,15 +114,11 @@ function makeConfig() {
|
||||
from: resolveAppDir(appConfig.staticPath),
|
||||
to: resolveAppDir('./dist/electron/static'),
|
||||
ignore: ['.*']
|
||||
},
|
||||
{
|
||||
from: resolveAppDir(appConfig.electron.paths.main),
|
||||
to: resolveAppDir('./dist/electron/main.js')
|
||||
}
|
||||
]) : null,
|
||||
// isProduction ? new BabiliWebpackPlugin() : null,
|
||||
// isProduction ? new webpack.LoaderOptionsPlugin({ minimize: true }) : null,
|
||||
],
|
||||
].filter(Boolean),
|
||||
optimization: {
|
||||
noEmitOnErrors: false
|
||||
},
|
||||
@ -185,7 +181,7 @@ function makeConfig() {
|
||||
isProduction && new webpack.DefinePlugin({
|
||||
'process.env.NODE_ENV': '"production"'
|
||||
})
|
||||
],
|
||||
].filter(Boolean),
|
||||
resolve: {
|
||||
extensions: ['.js', '.json', '.node']
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user