npm.io
18.3.8 • Published 4 years ago

paperclip-builder

Licence
ISC
Version
18.3.8
Deps
8
Size
83 kB
Vulns
0
Weekly
0
import { build } from "paperclip-builder";

const config: PaperclipConfig = {
  compiler: {
    name: "paperclip-compiler-react"
    css: {
      output: "embed" | "module" | "mono",
      include: true
    }    
  }
}

build(config, {
  cwd: process.cwd(),
  watch: false
})
.onFile(file => {
  // do something
})
.onEnd(() => {
  // called when there is no watch
});

Qs:

  • paperclip-loader
    • can pass in config