All Projects → stackcss → css-extract

stackcss / css-extract

Licence: MIT License
Extract CSS from a browserify bundle

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to css-extract

mocaccino.js
Mocha test runner as a Browserify plugin
Stars: ✭ 22 (-52.17%)
Mutual labels:  browserify, browserify-plugin
split-require
commonjs-first bundle splitting, for browserify
Stars: ✭ 80 (+73.91%)
Mutual labels:  browserify, browserify-plugin
browserify-bower
A browserify plugin, to enable you use bower components just like node modules
Stars: ✭ 20 (-56.52%)
Mutual labels:  browserify, browserify-plugin
browserify-aes
aes, for browserify
Stars: ✭ 56 (+21.74%)
Mutual labels:  browserify
bubleify
Browserify transform that compiles es2015 to es5 using Bublé
Stars: ✭ 21 (-54.35%)
Mutual labels:  browserify
cypress-browserify-preprocessor
Cypress preprocessor for bundling JavaScript via browserify
Stars: ✭ 23 (-50%)
Mutual labels:  browserify
fastify-bankai
Bankai assets compiler for Fastify
Stars: ✭ 15 (-67.39%)
Mutual labels:  browserify
ts-react-boilerplate
A very opinionated (React/TypeScript/Redux/etc) frontend boilerplate
Stars: ✭ 43 (-6.52%)
Mutual labels:  browserify
browserify-test
An easy way to test front-end libraries using browserify and mocha
Stars: ✭ 37 (-19.57%)
Mutual labels:  browserify
react-tutorial
A react-tutorial
Stars: ✭ 99 (+115.22%)
Mutual labels:  browserify
g5-component
Event based Browserify component scaffold. ⚾
Stars: ✭ 15 (-67.39%)
Mutual labels:  browserify
browserify-persist-fs
Efficient & stable persistent filesystem cache for browserify
Stars: ✭ 16 (-65.22%)
Mutual labels:  browserify
sitio
imperative static site generator powered by React and browserify
Stars: ✭ 49 (+6.52%)
Mutual labels:  browserify
typedarray-to-buffer
Convert a typed array to a Buffer without a copy.
Stars: ✭ 64 (+39.13%)
Mutual labels:  browserify
LoanJS
Calculate loan in js (browser/node.js) for equal installments, installments decreasing, the sum of interest, etc.
Stars: ✭ 20 (-56.52%)
Mutual labels:  browserify
sentiment-analysis
🎈 A Node.js AFINN-111 based sentiment analysis module
Stars: ✭ 26 (-43.48%)
Mutual labels:  browserify
idomizer
An HTML template parser compiling an incremental-dom render factory.
Stars: ✭ 15 (-67.39%)
Mutual labels:  browserify
gupack
基于gulp的前端构建工具
Stars: ✭ 13 (-71.74%)
Mutual labels:  browserify
browserify-cipher
No description or website provided.
Stars: ✭ 15 (-67.39%)
Mutual labels:  browserify
serverless-plugin-browserifier
Reduce the size and speed up your Node.js based lambda's using browserify.
Stars: ✭ 26 (-43.48%)
Mutual labels:  browserify

css-extract stability

npm version build status test coverage downloads js-standard-style

Looks up require('insert-css') calls to extract CSS from a browserify bundle to a file. Useful with sheetify or any other package / transform that uses insert-css.

Command line

$ browserify -t sheetify/transform -p [ css-extract -o bundle.css ] index.js \
  -o bundle.js

JS api

const browserify = require('browserify')

browserify()
  .transform('sheetify/transform')
  .plugin('css-extract', { out: 'bundle.css' })
  .bundle()
const browserify = require('browserify')

browserify()
  .transform('sheetify/transform')
  .plugin('css-extract', { out: createWriteStream })
  .bundle()

function createWriteStream () {
  return process.stdout
}

Options

  • -o / --out: specify an outfile, defaults to bundle.css. Can also be a function that returns a writable stream from the JavaScript API.

Installation

$ npm install css-extract

See Also

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].