Skip to content

The new minimize feature is causing Angular build to fail #269

Closed
@JonWallsten

Description

@JonWallsten
  • Operating System: Windows
  • Node Version: 12.14.1
  • NPM Version: 6.13.4
  • webpack Version: 4.42.1
  • html-loader Version: 4.0.1

Expected Behavior

The default configuration should not mess up the build for all Angular users

Actual Behavior

Since minimize is enabled as default for production builds it automatically fails Angular's production build when you update this package.

How Do We Reproduce?

Use Webpack and AngularCompilerPlugin to compile you Angular build.

I will close this as soon as it's created. I just want people to be able to search for this issue so they don't have to dig into this like I had to.

Solution

Turn of minimize:

{
    test: /\.html$/,
    loader: 'html-loader',
    options: {
        minimize: false
    }
},

Keywords: html-loader webpack angular build fail ivy compile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions