liferay-npm-bundler-loader-css-loader v2.32.2
liferay-npm-bundler-loader-css-loader
A liferay-npm-bundler loader that turns CSS files into JavaScript modules that inject a into the HTML when they are required.
This loader assumes that the project will be deployed to a Liferay Portal and composes the .css file URL accordingly.
The web context path for the generated OSGi bundle is inferred by reading it from the .npmbundlerrc file.
If the project is not configured to generate an OSGi bundle, the web context path is read from the bnd.bnd file in the project's folder. In particular, the Web-ContextPath property is used.
Installation
npm install --save-dev liferay-npm-bundler-loader-css-loaderUsage
In order to use this loader you must declare a rule in your module's .npmbundlerrc file:
{
"rules": [
{
"test": "\\.css$",
"use": ["css-loader"]
}
]
}See the project's documentation for more information on how to use build rules.
10 months ago
10 months ago
10 months ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago