use_loader_style | R Documentation |
Installs loaders and adds relevant configuration rules
to srcjs/config/loaders.json
, the function
use_loader_style
is recommended.
use_loader_css(test = "\\.css$", import = TRUE, modules = TRUE) use_loader_sass(test = "\\.s[ac]ss$/i") use_loader_style(test = "\\.css$", import = TRUE, modules = TRUE)
test |
Test regular expression test which files should be transformed by the loader. |
import |
Whether to enable |
modules |
Enables CSS modules and their config, a complex but powerful feature detailed here |
This will let you import styles much like any other modules, e.g.: import './styles.css'
.
use_loader_css()
- installs and imports css-loader
packages as dev.
use_loader_style()
- installs and imports style-loader
and css-loader
packages as dev. This loader enabled CSS modules.
use_loader_sass()
- installs and imports style-loader
, css-loader
, and sass-loader
as dev.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.