@@ -59,7 +59,10 @@ import { buildCSS, buildJS, watchCSS, runTests } from '@hypothesis/frontend-buil
5959
6060gulp .task (' build-js' , () => buildJS (' rollup.config.mjs' ));
6161gulp .task (' watch-js' , () => watchJS (' rollup.config.mjs' ));
62- gulp .task (' build-css' , () => buildCSS ([' src/my-app.scss' , ' src/other-app.scss' ]));
62+ gulp .task (' build-css' , () => buildCSS (
63+ [' src/my-app.scss' , ' src/other-app.scss' ],
64+ { tailwindConfig }
65+ ));
6366gulp .task (' watch-css' , () => gulp .watch (' src/**/*.scss' , ' build-css' ));
6467gulp .task (' watch' , gulp .parallel (' watch-js' , ' watch-css' ));
6568gulp .task (' test' , () => runTests ({
@@ -85,7 +88,10 @@ Rollup config file. The Rollup config file must be an ES module.
8588` watchJS (rollupConfig)` - Same as ` buildJS` , but watches for updates to input files
8689after building the bundle and rebuilds if they change.
8790
88- ` buildCSS (inputs)` - Build one or more CSS bundles from CSS or SASS entry points.
91+ ` buildCSS (inputs, options = {})` - Build one or more CSS bundles from CSS or SASS
92+ entry points, with optional support for Tailwind.
93+
94+ - ` options .tailwindConfig ` : Optional [Tailwind config/preset](https://tailwindcss.com/docs/configuration)
8995
9096` generateManifest (options)` - Generate a JSON asset manifest suitable for use
9197with the [h-assets](https://pypi.org/project/h-assets/) package used by Python
0 commit comments