Skip to content

Blastoplex/rollup-plugin-treat

Repository files navigation

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

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

Outstanding

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published