File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 1- # @ rsbuild/ plugin-tailwindcss
1+ # rsbuild- plugin-tailwindcss
22
33An Rsbuild plugin to integrate with [ Tailwind CSS] ( https://tailwindcss.com/ ) V3.
44
55<p >
6- <a href =" https://npmjs.com/package/@ rsbuild/ plugin-tailwindcss " >
7- <img src =" https://img.shields.io/npm/v/@ rsbuild/ plugin-tailwindcss?style=flat-square&colorA=564341&colorB=EDED91 " alt =" npm version " />
6+ <a href =" https://npmjs.com/package/rsbuild- plugin-tailwindcss " >
7+ <img src =" https://img.shields.io/npm/v/rsbuild- plugin-tailwindcss?style=flat-square&colorA=564341&colorB=EDED91 " alt =" npm version " />
88 </a >
99 <img src =" https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square&colorA=564341&colorB=EDED91 " alt =" license " />
10- <a href =" https://npmcharts.com/compare/@ rsbuild/ plugin-tailwindcss?minimal=true " ><img src =" https://img.shields.io/npm/dm/@ rsbuild/ plugin-tailwindcss.svg?style=flat-square&colorA=564341&colorB=EDED91 " alt =" downloads " /></a >
10+ <a href =" https://npmcharts.com/compare/rsbuild- plugin-tailwindcss?minimal=true " ><img src =" https://img.shields.io/npm/dm/rsbuild- plugin-tailwindcss.svg?style=flat-square&colorA=564341&colorB=EDED91 " alt =" downloads " /></a >
1111</p >
1212
1313## Usage
1414
1515Install:
1616
1717``` bash
18- npm add @ rsbuild/ plugin-tailwindcss -D
18+ npm add rsbuild- plugin-tailwindcss -D
1919```
2020
2121Add plugin to your ` rsbuild.config.ts ` :
2222
2323``` ts
2424// rsbuild.config.ts
25- import { pluginTailwindCSS } from " @ rsbuild/ plugin-tailwindcss" ;
25+ import { pluginTailwindCSS } from " rsbuild- plugin-tailwindcss" ;
2626
2727export default {
2828 plugins: [pluginTailwindCSS ()],
Original file line number Diff line number Diff line change 11{
2- "name" : " @ rsbuild/ plugin-tailwindcss" ,
2+ "name" : " rsbuild- plugin-tailwindcss" ,
33 "version" : " 0.0.0" ,
44 "repository" : " https://github.com/rspack-contrib/rsbuild-plugin-tailwindcss" ,
55 "license" : " MIT" ,
4040 "typescript" : " ^5.6.3"
4141 },
4242 "peerDependencies" : {
43- "@rsbuild/core" : " 1.x " ,
43+ "@rsbuild/core" : " ^1.1.0 " ,
4444 "tailwindcss" : " ^3"
4545 },
4646 "peerDependenciesMeta" : {
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ interface TailwindRspackPluginOptions {
2424 * import path from 'node:path'
2525 * import { fileURLToPath } from 'node:url'
2626 *
27- * import { TailwindRspackPlugin } from '@ rsbuild/ plugin-tailwindcss'
27+ * import { TailwindRspackPlugin } from 'rsbuild- plugin-tailwindcss'
2828 *
2929 * const __dirname = path.dirname(fileURLToPath(import.meta.url))
3030 *
@@ -43,7 +43,7 @@ interface TailwindRspackPluginOptions {
4343 *
4444 * ```js
4545 * // rspack.config.js
46- * import { TailwindRspackPlugin } from '@ rsbuild/ plugin-tailwindcss'
46+ * import { TailwindRspackPlugin } from 'rsbuild- plugin-tailwindcss'
4747 *
4848 * export default {
4949 * plugins: [
@@ -65,7 +65,7 @@ interface TailwindRspackPluginOptions {
6565 *
6666 * ```js
6767 * // rspack.config.js
68- * import { TailwindRspackPlugin } from '@ rsbuild/ plugin-tailwindcss'
68+ * import { TailwindRspackPlugin } from 'rsbuild- plugin-tailwindcss'
6969 *
7070 * export default {
7171 * plugins: [
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export type PluginTailwindCSSOptions = {
4040 * import path from 'node:path'
4141 * import { fileURLToPath } from 'node:url'
4242 *
43- * import { pluginTailwindCSS } from '@ rsbuild/ plugin-tailwindcss'
43+ * import { pluginTailwindCSS } from 'rsbuild- plugin-tailwindcss'
4444 *
4545 * const __dirname = path.dirname(fileURLToPath(import.meta.url))
4646 *
You can’t perform that action at this time.
0 commit comments