Socket
Socket
Sign inDemoInstall

liferay-npm-bundler-loader-css-loader

Package Overview
Dependencies
179
Maintainers
14
Versions
57
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    liferay-npm-bundler-loader-css-loader

A liferay-npm-bundler loader that turns CSS files into JavaScript modules that inject a <link> into the HTML when they are required.


Version published
Weekly downloads
1.6K
increased by7.68%
Maintainers
14
Install size
8.27 MB
Created
Weekly downloads
 

Readme

Source

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-loader

Usage

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.

FAQs

Last updated on 05 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc