yarn add rollup-plugin-treat@alpha
import { rollupPluginTreat } from 'rollup-plugin-treat';
export default {
input: './myThing.js',
plugins: [
rollupPluginTreat({
/* 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; | [] |
- unused treat modules
- allow for code-split generated css
- ... stuff as I start using it