Not Preposterously Macho
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    broccoli-csssplitpublic

    Split Your CSS With Broccoli

    Pass your tree to broccoli-csssplit and it will split any file (eg. foo.css) with more than 4095 selectors into separate files.

    Be sure to select CSS files only in your input tree. broccoli-caching-writer will ensure that it can skip CSS Spliting if the files have not changed.

    var pickFiles = require('broccoli-static-compiler');
     
    var styles = pickFiles(tree, {
      srcDir: '/css',
      files: ['app.css'],
      destDir: '/css'
    });
     
    module.exports = csss(styles);

    install

    npm i broccoli-csssplit

    Downloadsweekly downloads

    10

    version

    0.0.10

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar