Socket
Socket
Sign inDemoInstall

css-class-prefixer-loader

Package Overview
Dependencies
96
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    css-class-prefixer-loader

README.md


Version published
Weekly downloads
3
increased by200%
Maintainers
1
Install size
9.48 MB
Created
Weekly downloads
 

Readme

Source

CSS Class Prefixer Loader

CSS Class Prefixer Loader plugin for webpack.

Automatically adds prefixes to CSS classes, for webpack.

Usage


require('!css-class-prefixer?mode=css&prefix=my-!myfile.css');
require('!css-class-prefixer?mode=html&prefix=my-!myfile.css');

Usage in webpack config

{
	module: {
		loaders: [
			{ test: /\.css$/, loader: "css-class-prefixer?mode=css&prefix=my-" }, 
			{ test: /\.html$/, loader: "css-class-prefixer?mode=html&prefix=my-" }, 
		], 
	}, 
}

Config options

  • prefix - the prefix to use
  • mode - either 'css' or 'html'

FAQs

Last updated on 08 Feb 2016

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