更新electron到 v9

This commit is contained in:
lyswhut
2020-05-23 16:32:28 +08:00
parent af426d28c1
commit a47be148c8
3 changed files with 405 additions and 165 deletions
+8 -7
View File
@@ -47,13 +47,14 @@ module.exports = merge(baseConfig, {
],
},
plugins: [
new CopyWebpackPlugin([
{
from: path.join(__dirname, '../../src/static'),
to: path.join(__dirname, '../../dist/electron/static'),
ignore: ['.*'],
},
]),
new CopyWebpackPlugin({
patterns: [
{
from: path.join(__dirname, '../../src/static'),
to: path.join(__dirname, '../../dist/electron/static'),
},
],
}),
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"production"',