-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
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
simplemde.min.css not getting injected in Angular 5.1 #11
Comments
use webpack: style-loader!css-loader |
If you use angular-cli, you can add |
@doxiaodong Could you clarify what you mean by that comment? You link to a pretty long Issue thread, and it's not clear which part of it is meant to be relevant. Do we need to use pug-loader if we're using angular-cli, or are you saying to do something similar to what they do with pug-loader? |
yep, add style-loader!css-loader as just like pug-loader usage in the issue. |
Please, how to add Because I don't think angular 5 have the webpack.config.js file anymore. Please, it would be very helpful if an example is given on how to add the css loader. (demo link or Stackblitz) |
you can use https://github.com/doxiaodong/ng2-simplemde#style . and add 'simplemde.min.css' to angular-cli config |
Yeah, I think that's the best way. Thanks a lot @doxiaodong |
I just import the module and use it inside a component. The CSS does not get injected (so the view is
completely broken).
I import
SimplemdeModule.forRoot()
inside the module that has my component.What info do you need to help me debug this?
EDIT: I added
"../node_modules/simplemde/dist/simplemde.min.css"
to myangular-cli.json
and it works, but I don't like this approach.The text was updated successfully, but these errors were encountered: