electron-vue icon indicating copy to clipboard operation
electron-vue copied to clipboard

process is not defined

Open Jane-blog opened this issue 4 years ago • 0 comments
trafficstars

node v12.19.0 npm 6.4.1 npm run build:web My has modified HtmlWebpackPlugin in .electron-vue/webpack.web.config.js and .electron-vue/webpack.renderer.config.js and it still returns error 11 process is not defined

new HtmlWebpackPlugin({
      filename: 'index.html',
      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,
        removeComments: true
      },
      nodeModules: false
    }),

but

Jane-blog avatar Apr 13 '21 11:04 Jane-blog