@coorpacademy/css-wrapper-webpack-plugin
Webpack plugin to wrap all CSS classes in a container
Last updated 4 years ago by godu .
Original npm · Tarball · package.json
$ cnpm install @coorpacademy/css-wrapper-webpack-plugin 
SYNC missed versions from official npm registry.

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')
  ]

Current Tags

  • 1.0.8                                ...           latest (4 years ago)

4 Versions

  • 1.0.8                                ...           4 years ago
  • 1.0.7                                ...           4 years ago
  • 1.0.6                                ...           4 years ago
  • 1.0.4                                ...           4 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (2)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |