@henrikjoreteg/rollup-plugin-css
Rollup plugin for aggregating and outputting CSS
Last updated 2 years ago by henrikjoreteg .
MIT · Original npm · Tarball · package.json
$ cnpm install @henrikjoreteg/rollup-plugin-css 
SYNC missed versions from official npm registry.

rollup-plugin-css

Rollup plugin for aggregating and outputting CSS. I'm extracting this into it's own repo because I keep finding myself wanting it.

install

npm install @henrikjoreteg/rollup-plugin-css

example

import css from '@henrikjoreteg/rollup-plugin-css'

const IS_PROD = process.env.NODE_ENV === 'production'

export default {
  input: 'src/worker',
  output: {
    format: 'umd',
    file: 'public/build/worker.js'
  },
  plugins: [
    css({
      output: './public/build/s.css',
      minify: IS_PROD
    })
  ]
}

changelog

2.0.0 - Renamed ongenerateto generateBundle per updates to Rollup. Thanks @ryan-codingintrigue

credits

If you like this follow @HenrikJoreteg on twitter.

license

MIT

Current Tags

  • 2.0.0                                ...           latest (2 years ago)

2 Versions

  • 2.0.0                                ...           2 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 1
Last Month 2
Dependencies (2)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |