0.0.1 • Published 4 years ago
rollup-plugin-treat v0.0.1
rollup-plugin-treat
WIP
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