Comments (5)
Same problem here.
It seems that the output of html-loader changed in v1.0.0.
In version 0.5.5 the output looked like this:
module.exports = "... html ...";
In version 1.1.0 the output has changed to:
// Module
var code = "... html ...";
// Exports
module.exports = code;
from ngtemplate-loader.
Because of this change following code is no longer working as intended.
if (content.match(/^module\.exports/)) {
var firstQuote = findQuote(content, false);
var secondQuote = findQuote(content, true);
html = content.substr(firstQuote, secondQuote - firstQuote + 1);
} else {
html = content;
}
from ngtemplate-loader.
Hey I have provided an alternative fix here #87 that adds compatibility with file-loader for stuff like <img src="...">
replacement
from ngtemplate-loader.
@WearyMonkey can you merge, please? :)
from ngtemplate-loader.
Sorry for the delay, I've released it now.
from ngtemplate-loader.
Related Issues (20)
- DeprecationWarning: loaderUtils HOT 2
- Generated file path is causing problems on Windows HOT 1
- Cannot use ES6 modules and TypeScript HOT 3
- Parameter Interpolation HOT 1
- changelog
- sensible defaults
- Webpack v3 loaderUtils.parseQuery() deprecation warning HOT 2
- ERROR in Error: Child compilation failed: Module build failed: Error: The path for file doesn't contain relativeTo param HOT 6
- Error ReferenceError: window is not defined HOT 2
- ng-include relativeTo prefix slash HOT 6
- Breaks while requiring html files that start with comments HOT 1
- relativeTo parameter is not working HOT 1
- Directive templateurl is not working with lazyloading module in ui-router. HOT 2
- Loader injects strange text in generated html file. ERROR "window is not defined " if html-loader is after ngtemplate-loader in config HOT 1
- not working with babel-7 HOT 1
- ngtemplate-loader generated code `path` variable refers to the absolute path. HOT 1
- Use ngtemplate-loader with JEST transform HOT 1
- Uncaught Error: ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead HOT 2
- Module build failed Error: The path for file doesn't contain relativeTo param - Not able to bundle the htmls of parallel module HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngtemplate-loader.