Closed Ridermansb closed 8 years ago
If you match extension with loader in webpack.config
and simultaneously point same loader in require statement
the loader applied twice. In this case result is unpredictable.
Please see this commen for explanation.
I'm having a similar problem but I don't have webpack.config set up to use this loader, only the inline require. I cannot for the life of me figure out what is happening
The error after very long time...
The errorMessages.html is very simple:
And in my app.js I have import this file
require('ng-cache?minimize=false&-url&-removeComments&-removeCommentsFromCDATA&-collapseWhitespace&-conservativeCollapse&-preserveLineBreaks&-removeEmptyAttributes&-keepClosingSlash!./components/shared/partials/errorMessages.html');
If I change the html with
<p ng-message="minlength" class="badge">O valor é muito curto</p>
this works.
If I change the html with
<p ng-message="minlength" class="badge mySecondClass">O valor é muito curto</p>
this NOT works.
The follow webpack.config