Skip to content

A full-featured download manager.

fix: process is not defined at node 12.x #267

Dr_rOot9c386c4bdc32
diff --git a/.electron-vue/webpack.renderer.config.js b/.electron-vue/webpack.renderer.config.js
index 1daa2a56..65e225e9 100644
--- a/.electron-vue/webpack.renderer.config.js
+++ b/.electron-vue/webpack.renderer.config.js
@@ -166,6 +166,18 @@ let rendererConfig = {
filename: 'index.html',
chunks: ['index'],
template: path.resolve(__dirname, '../src/index.ejs'),
+ templateParameters(compilation, assets, options) {
+ return {
+ compilation: compilation,
+ webpack: compilation.getStats().toJson(),
+ webpackConfig: compilation.options,
+ htmlWebpackPlugin: {
+ files: assets,
+ options: options
+ },
+ process
+ }
+ },
// minify: {
// collapseWhitespace: true,
// removeAttributeQuotes: true,
diff --git a/.electron-vue/webpack.web.config.js b/.electron-vue/webpack.web.config.js
index 058cf415..0c6a7a34 100644
--- a/.electron-vue/webpack.web.config.js
+++ b/.electron-vue/webpack.web.config.js
@@ -134,6 +134,18 @@ let webConfig = {
filename: 'index.html',
chunks: ['index'],
template: path.resolve(__dirname, '../src/index.ejs'),
+ templateParameters(compilation, assets, options) {
+ return {
+ compilation: compilation,
+ webpack: compilation.getStats().toJson(),
+ webpackConfig: compilation.options,
+ htmlWebpackPlugin: {
+ files: assets,
+ options: options
+ },
+ process
+ }
+ },
// minify: {
// collapseWhitespace: true,
// removeAttributeQuotes: true,