angular2-template-loader
angular2-template-loader copied to clipboard
Add assuring that exported is a string
I have met issue caused by using of ExtractTextPlugin with following error message:
Expected 'styleUrls' to be an array of strings.
Idea of my fix is an ensuring that each element of styleUrls is a string.
The result (in bundle) looks like:
core_1.Component({
...
styles: [typeof __webpack_require__(296) === 'string' ? __webpack_require__(296) : '']
...
})
I would not like to update tests untill your approval of solution. Waiting for your response. Thanks in advance.
@zhakhalov This would work very well for my case. I am using style-loader to pull the generated css in outside of the component (so I can do hot reload) and had to work around the fact that what ends up in styles is not a string. Would love it if this was done automatically.
Hey @TheLarkInn Is this PR going to be merged?