Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

liferay-npm-bundler-loader-css-loader

Package Overview
Dependencies
Maintainers
14
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

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.

  • 2.32.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.4K
decreased by-11.27%
Maintainers
14
Weekly downloads
 
Created
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

Package last updated on 05 Mar 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc