Skip to content

Commit

Permalink
Merge pull request #424 from agalwood/hotfix/webpack_config_4node12_2…
Browse files Browse the repository at this point in the history
…01909161132

fix: process is not defined at node 12.x #267
  • Loading branch information
agalwood authored Sep 16, 2019
2 parents a1eb489 + 9c386c4 commit 06d9a95
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .electron-vue/webpack.renderer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
12 changes: 12 additions & 0 deletions .electron-vue/webpack.web.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 06d9a95

Please sign in to comment.