合并打包的页面文件

This commit is contained in:
lyswhut
2022-05-11 15:37:06 +08:00
parent a5ec36bf89
commit ebd6ff36ed
10 changed files with 13 additions and 22 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ module.exports = {
output: {
filename: '[name].js',
libraryTarget: 'commonjs2',
path: path.join(__dirname, '../../dist/electron'),
path: path.join(__dirname, '../../dist'),
publicPath: 'auto',
},
resolve: {
+1 -1
View File
@@ -23,7 +23,7 @@ module.exports = merge(baseConfig, {
patterns: [
{
from: path.join(__dirname, '../../src/static'),
to: path.join(__dirname, '../../dist/electron/static'),
to: path.join(__dirname, '../../dist/static'),
},
],
}),