@modular-css/glob

Glob support for modular-css

Usage no npm install needed!

<script type="module">
  import modularCssGlob from 'https://cdn.skypack.dev/@modular-css/glob';
</script>

README

@modular-css/glob NPM Version NPM License NPM Downloads

A JS API for using glob patterns with modular-css.

Install

$ npm i @modular-css/glob

Usage

var glob = require("@modular-css/glob");

glob({
    search : [
        "**/*.css"
    ]
})
.then((processor) => {
    // returns a filled-out Processor instance you can use
})

Options

glob() accepts all of the same options as a Processor instance.

search

Array of glob patterns to pass to globule for searching.