🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@coorpacademy/css-wrapper-webpack-plugin

Package Overview
Dependencies
Maintainers
12
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coorpacademy/css-wrapper-webpack-plugin

Webpack plugin to wrap all CSS classes in a container

latest
npmnpm
Version
1.0.8
Version published
Weekly downloads
18
50%
Maintainers
12
Weekly downloads
 
Created
Source

Disclaimer: you should use this plugin with minified css only.

What it does

Providing your minified styles.css is:

.plop {opacity: .5;}.plup {height: 12px;}

the final css will be wrapped with your container

#app .plop {opacity: .5;}#app .plup {height: 12px;}

Usage

require the plugin

const WebpackCSSWrapperPlugin = require('@coorpacademy/webpack-css-wrapper');

then within your webpack plugins:

  plugins: [
    new ExtractTextWebpackPlugin('styles.css'),
    new WebpackCSSWrapperPlugin('styles.css', '#app')
  ]

FAQs

Package last updated on 30 Aug 2016

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