Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Apr 28, 2024
1 parent bb94135 commit 670028d
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 8 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,17 @@ esbuild.build({

```tsx
interface CSSPluginOptions {
/** by default name is generated without hash so that it is easier and reliable for library users to override some CSS*/
generateScopedName?: string | ((className: string, filename: string, css: string) => string);
/**
* By default name is generated without hash so that it is easier and reliable for library users to override some CSS.
* Refer [loader-utils docs](https://github.com/webpack/loader-utils?tab=readme-ov-file#interpolatename) for more options
* @defaultValue A function that generates name similar to [name]__[local] but without .module
*/
generateScopedName?: string | ((className: string, path: string, css: string) => string);
/** set skipAutoPrefixer to true to disable autoprefixer */
skipAutoPrefixer?: boolean;
/** global CSS class prefix. @defaultValue "" */
/** global CSS class prefix. @defaultValue undefined */
globalPrefix?: string;
/** If you want to keep .module.css files */
/** If you want to keep .module.css files. @defaultValue undefined */
keepModules?: boolean;
}
```
Expand Down
12 changes: 8 additions & 4 deletions lib/esbuild-plugin-react18-css/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,17 @@ esbuild.build({

```tsx
interface CSSPluginOptions {
/** by default name is generated without hash so that it is easier and reliable for library users to override some CSS*/
generateScopedName?: string | ((className: string, filename: string, css: string) => string);
/**
* By default name is generated without hash so that it is easier and reliable for library users to override some CSS.
* Refer [loader-utils docs](https://github.com/webpack/loader-utils?tab=readme-ov-file#interpolatename) for more options
* @defaultValue A function that generates name similar to [name]__[local] but without .module
*/
generateScopedName?: string | ((className: string, path: string, css: string) => string);
/** set skipAutoPrefixer to true to disable autoprefixer */
skipAutoPrefixer?: boolean;
/** global CSS class prefix. @defaultValue "" */
/** global CSS class prefix. @defaultValue undefined */
globalPrefix?: string;
/** If you want to keep .module.css files */
/** If you want to keep .module.css files. @defaultValue undefined */
keepModules?: boolean;
}
```
Expand Down
5 changes: 5 additions & 0 deletions lib/esbuild-plugin-react18-css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
"tiny-glob": "^0.2.9",
"tsup": "^8.0.2",
"typedoc": "^0.25.13",
"typedoc-plugin-inline-sources": "^1.0.2",
"typedoc-plugin-mdn-links": "^3.1.23",
"typedoc-plugin-missing-exports": "^2.2.0",
"typedoc-plugin-rename-defaults": "^0.7.0",
"typedoc-plugin-zod": "^1.1.2",
"typescript": "^5.4.5",
"vitest": "^1.5.2"
},
Expand Down
8 changes: 8 additions & 0 deletions lib/esbuild-plugin-react18-css/typedoc.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,12 @@ module.exports = {
tsconfig: "./tsconfig.doc.json",
out: "../../docs",
commentStyle: "all",
searchInComments: true,
plugin: [
"typedoc-plugin-mdn-links",
"typedoc-plugin-rename-defaults",
"typedoc-plugin-missing-exports",
"typedoc-plugin-zod",
"typedoc-plugin-inline-sources",
],
};

0 comments on commit 670028d

Please sign in to comment.