Closed manhhailua closed 8 years ago
Did you tried import by relative path (something like import s from '../../node_modules/admin-lte/plugins/...
)?
Another way is to setup webpack (tools/webpack.config.js
), but I don't know precisely how to do this correctly.
There are related issues to this, please try find answer in old issues. If you didn't find you answer, ask at Gitter channel and please write a summary here and close this issue. Thanks!
Yes, I did!
Using tools/webpack.config.js
will import css directly to the whole app. I just want to import some css files to specific component.
@frenzzy : thank you for your help!
I'm using React-Starter-Kit and trying to integrate with AdminLTE. When I imported a css from AdminLTE I got this error.
If I change the background url from url(blue.png) to url("./blue.png"), the error "Cannot resolve module" will disappear but the error "Unexpected token ." still exist.