Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复 ReferenceError: process is not defined 问题 #1020

Open
wants to merge 1 commit into
base: master
from

Conversation

@wjf2016
Copy link

@wjf2016 wjf2016 commented Jun 12, 2020

No description provided.

@subins2000
Copy link

@subins2000 subins2000 commented Jun 13, 2020

Thank you. This solves the error. Errors started happening when I upgraded electron

@happy-func
Copy link

@happy-func happy-func commented Aug 16, 2020

fixed

you can add these text with .electron-vue/webpack.web.config.js and .electron-vue/webpack.renderer.config.js file,in HtmlWebpackPlugin.

      templateParameters(compilation, assets, options) {
        return {
          compilation: compilation,
          webpack: compilation.getStats().toJson(),
          webpackConfig: compilation.options,
          htmlWebpackPlugin: {
            files: assets,
            options: options
          },
          process,
        };
      },
@zjfresh
Copy link

@zjfresh zjfresh commented Aug 21, 2020

It helps for me. Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.