wesleytodd / buildcss

Builds css my way

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build CSS

This is a way I have built css files. Take it or leave it.

Usage

$ npm in @wesleytodd/buildcss

Without any options it will build index.css to dist/index-{filehash}.css:

const buildcss = require('@wesleytodd/buildcss')

(async () => {
  await buildcss()
})()

Options

// these are the defaults
buildcss({
  basedir: process.cwd(),
  srcfile: 'index.css',
  outputdir: 'dist',
  outputFilename: 'index-{{hash}}.css',
  outputMapFilename: 'index-{{hash}}.css.map',
  outputMapUrl: 'index-{{hash}}.css.map',
  debug: false,
  watch: false,
  minify: false
})

About

Builds css my way


Languages

Language:JavaScript 100.0%