JSPM Loader: CSS Modules
A CSS Modules loader for JSPM
Install the plugin and name it css
locally
jspm install css=npm:jspm-loader-css-modules
Write some CSS Modules:
/* component.css */
/* backgrounds.css */
and use them in your JS:
eleminnerHTML = ``
The following CSS is generated:
And the styles
variable returns
For the opt-in version, using :local
to declare exported classnames, use the default JSPM CSS Loader instead.