-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
We are trying to load a CSS file into the HelloWorld component using:
@Component({
selector: 'hello-world-app',
templateUrl: 'hello-world.template.html',
styleUrls: ['hello.css'],
encapsulation: ViewEncapsulation.None
})
this throws with You may need an appropriate loader to handle this file type.
Tried adding css-loader and style-loader in the webpack.config.js file:
{ test: /\.css$/, use: ["style-loader", "css-loader"]},
but this triggers an Angular exception Cannot read property 'replace' of undefined.
Any help will be appreciated!
unsafecode
Metadata
Metadata
Assignees
Labels
No labels