We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This loader does not work on os x! always returns ERROR in ReferenceError: window is not defined. This is my setup:
ERROR in ReferenceError: window is not defined
loaders: [ { test: /\.(png|jpg|jpeg|gif)$/, loader: 'file' }, { test: /\.html$/, loader: 'ngtemplate!html' }, { test: /\.json$/, loader: 'json-loader' } ]
The text was updated successfully, but these errors were encountered:
Well, the problem is that it is necessary to exclude the index.template.html file that is passed to the plugin html-webpack-plugin, in this way:
index.template.html
html-webpack-plugin
loaders: [ { test: /\.(png|jpg|jpeg|gif)$/, loader: 'file' }, { test: /\.html$/, exclude: [ path.resolve(__dirname, 'public/index.template.html') ], loader: 'ngtemplate!html' }, { test: /\.json$/, loader: 'json-loader' } ]
@WearyMonkey It would be useful to put this in the documentation!
Sorry, something went wrong.
Same happend to me, I didn't see it in the docs. It fixed it!
No branches or pull requests
This loader does not work on os x!
always returns
ERROR in ReferenceError: window is not defined
.This is my setup:
The text was updated successfully, but these errors were encountered: