Skip to content

Commit 259351e

Browse files
committed
v1.2.0
1 parent e7e5b3d commit 259351e

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [v1.2.0] 2021-12-02
9+
10+
- Add optional support for `tailwindcss` in CSS-build task [#8](https://github.com/hypothesis/frontend-build/pull/8)
11+
812
## [v1.1.0] 2021-10-22
913

1014
- Add `generateManifest` function for building asset manifests. [#5](https://github.com/hypothesis/frontend-build/pull/5)

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ import { buildCSS, buildJS, watchCSS, runTests } from '@hypothesis/frontend-buil
5959

6060
gulp.task('build-js', () => buildJS('rollup.config.mjs'));
6161
gulp.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+
));
6366
gulp.task('watch-css', () => gulp.watch('src/**/*.scss', 'build-css'));
6467
gulp.task('watch', gulp.parallel('watch-js', 'watch-css'));
6568
gulp.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
8689
after 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
9197
with the [h-assets](https://pypi.org/project/h-assets/) package used by Python

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hypothesis/frontend-build",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "Hypothesis frontend build scripts",
55
"type": "module",
66
"exports": "./index.js",

0 commit comments

Comments
 (0)