2
0
mirror of https://github.com/frappe/books.git synced 2024-11-14 01:14:03 +00:00

Filter out falsy plugins

This commit is contained in:
Faris Ansari 2018-10-21 18:02:40 +05:30
parent 82f769dcfe
commit 40bc76b713

View File

@ -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']
},