webpack html-loaders lowercase angular 2 built-in directives

后端 未结 1 1933
心在旅途
心在旅途 2021-01-12 15:06

I am using html-loader to load my html template and file-loader to load my images that are in the template. This run just fine in dev but when I run build:prod and run the

相关标签:
1条回答
  • 2021-01-12 15:17

    Set the minimize param to false in the loader query as shown below.

    { test: /\.html$/, loader: 'html?minimize=false' }

    Or

    You can upgrade the html-loader to 0.4.3 and use the following configuration.

    { test: /\.html$/, loader: 'html?minimize=true&caseSensitive: true}

    0 讨论(0)
提交回复
热议问题