GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(webpack): don't use html-plugin in test · angular-fullstack/generator-angular-fullstack@959c31c

This repository was archived by the owner on Jul 29, 2026. It is now read-only.

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • templates/app
    • webpack.make.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎templates/app/webpack.make.js‎

Copy file name to clipboardExpand all lines: templates/app/webpack.make.js
+10-8Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -321,15 +321,17 @@ module.exports = function makeWebpackConfig(options) {
321321
// Skip rendering index.html in test mode
322322
// Reference: https://github.com/ampedandwired/html-webpack-plugin
323323
// Render index.html
324-
let htmlConfig = {
325-
template: 'client/_index.html',
326-
filename: '../client/index.html',
327-
alwaysWriteToDisk: true
324+
if(!TEST) {
325+
let htmlConfig = {
326+
template: 'client/_index.html',
327+
filename: '../client/index.html',
328+
alwaysWriteToDisk: true
329+
}
330+
config.plugins.push(
331+
new HtmlWebpackPlugin(htmlConfig),
332+
new HtmlWebpackHarddiskPlugin()
333+
);
328334
}
329-
config.plugins.push(
330-
new HtmlWebpackPlugin(htmlConfig),
331-
new HtmlWebpackHarddiskPlugin()
332-
);
333335

334336
// Add build specific plugins
335337
if(BUILD) {

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.