Skip to content

Commit

Permalink
docs(htmlCss): Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Marinerer committed Oct 23, 2024
1 parent 85bb4a8 commit 2cdacff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion plugins/html-css/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ A Gulp plugin for processing CSS within HTML.
It compiles and transforms CSS in `<style>` tags and inline styles using `PostCSS`.
If a `<style lang="">` attribute exists, it compiles the content using the appropriate preprocessor before applying `PostCSS`.

## Features

- Handle CSS within `<style/>` tag
- Handle inline styles
- Support for CSS preprocessor in the `<style lang=""/>`(Sass、Less、Stylus)
- Using `PostCSS` to transform CSS
- Supports merge `postcss.config.js`

## Installation

```bash
Expand Down Expand Up @@ -45,7 +53,7 @@ gulp.task('process-html', () => {
## API

```js
htmlCss(plugins[(options, ext)])
htmlCss(plugins, options, ext)
```

### plugins
Expand Down
2 changes: 1 addition & 1 deletion plugins/html-css/README.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ gulp.task('process-html', () => {
## API

```js
htmlCss(plugins[(options, ext)])
htmlCss(plugins, options, ext)
```

### plugins
Expand Down

0 comments on commit 2cdacff

Please sign in to comment.