Webpack: Using Component specific css render different in html? -
by following tutorial,
https://github.com/christianalfoni/react-webpack-cookbook/wiki/loading-css#component-specific
i tried implementing logic, how implemented.
as can see problem, css not applied navbar class, because classname rendered ".app-components-navbar-navbar-navbar-wrapper". classname should "navbar-wrapper"
- how resolve this?
- is how supposed work?
- how can achieve component specific css?
inside loader css, try changing value localidentname [path][name]-[local]
[local]
. ident name means create css class name in following format. ".app-components-navbar-navbar-navbar-wrapper
" means app/component/navbar
place defined , navbar name of file. local signifies name of class in css.
hope helps
Comments
Post a Comment