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 regular expression test which files should be transformed by the loader.
Whether to enable import statements for
.css files. If FALSE use require.
Enables CSS modules and their config, a complex but powerful feature detailed here
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.
This will let you import styles much like any other modules, e.g.: import './styles.css'.