fix: stop relying on window.isElectron

This commit is contained in:
Baptiste Grob
2020-09-28 12:19:23 +02:00
parent 045d1c1d1c
commit 22db551f1b
3 changed files with 15 additions and 6 deletions

View File

@@ -14,6 +14,7 @@ module.exports = (env = {
new webpack.DefinePlugin({
__VERSION__: JSON.stringify(require('./package.json').version),
__WEB__: JSON.stringify(env.platform === 'web'),
__DESKTOP__: JSON.stringify(env.platform === 'desktop'),
}),
new MiniCssExtractPlugin({
// Options similar to the same options in webpackOptions.output