Skip to content

A full-featured download manager.

fix: webpack copy plugin path

Dr_rOotc119de78ce0c
diff --git a/.electron-vue/webpack.renderer.config.js b/.electron-vue/webpack.renderer.config.js
index a31c7922..7cdb4c14 100644
--- a/.electron-vue/webpack.renderer.config.js
+++ b/.electron-vue/webpack.renderer.config.js
@@ -239,8 +239,8 @@ if (!devMode) {
rendererConfig.plugins.push(
new CopyWebpackPlugin({
patterns: [{
- from: '../static',
- to: '../dist/electron/static',
+ from: path.join(__dirname, '../static'),
+ to: path.join(__dirname, '../dist/electron/static'),
globOptions: { ignore: [ '.*' ] }
}]
}),
diff --git a/.electron-vue/webpack.web.config.js b/.electron-vue/webpack.web.config.js
index 5ed04f36..5842df74 100644
--- a/.electron-vue/webpack.web.config.js
+++ b/.electron-vue/webpack.web.config.js
@@ -211,8 +211,8 @@ if (!devMode) {
webConfig.plugins.push(
new CopyWebpackPlugin({
patterns: [{
- from: '../static',
- to: '../dist/electron/static',
+ from: path.join(__dirname, '../static'),
+ to: path.join(__dirname, '../dist/electron/static'),
globOptions: { ignore: [ '.*' ] }
}]
}),