0.0.1 • Published 4 years ago

rollup-plugin-treat v0.0.1

Weekly downloads
295
License
MIT
Repository
github
Last release
4 years ago

rollup-plugin-treat

WIP

A Rollup plugin for treat.

Install

    yarn add rollup-plugin-treat@alpha

Setup

import { rollupPluginTreat } from 'rollup-plugin-treat';

export default {
	input: './myThing.js',

	plugins: [
		rollupPluginTreat({
			/* options */
		}),
	],
};

Options

namedefault
include?: FilterPattern;/\.treat\.(ts|js)\$/
exclude?: FilterPattern;undefined
localIdentName: string;as per treat docs
themeIdentName: (() => string)default: as per treat docs
outputCSS: booleantrue | (string means filename)
onCSSOutput(source: string): Promiseoptional hook
minify: boolean;isProduction
browsers: Array;[]

Outstanding

  • unused treat modules
  • allow for code-split generated css
  • ... stuff as I start using it