esbuild-tailwind-ssr-plugin 0.1.21 → 0.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -1
- package/package.json +4 -5
package/README.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
[](https://badge.fury.io/js/esbuild-tailwind-ssr-plugin)
|
|
2
|
+
|
|
1
3
|
# esbuild-tailwind-ssr-plugin
|
|
2
4
|
|
|
3
|
-
ESBuild plugin for compiling Tailwind
|
|
5
|
+
ESBuild plugin for compiling Tailwind CSS for Server-Side Rendering (SSR) use cases.
|
|
6
|
+
|
|
7
|
+
This utility has been developed for the [Goldstack](https://goldstack.party) starter project builder. Check it out for starting your next project ❤️
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install esbuild-tailwind-ssr-plugin
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
Add the plugin to your esbuild configuration:
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import tailwindPlugin from 'esbuild-tailwind-ssr-plugin';
|
|
20
|
+
import { build } from 'esbuild';
|
|
21
|
+
|
|
22
|
+
await build({
|
|
23
|
+
plugins: [tailwindPlugin()],
|
|
24
|
+
});
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
This plugin compiles Tailwind CSS classes into static CSS that can be used in SSR environments.
|
|
28
|
+
|
|
29
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "esbuild-tailwind-ssr-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.24",
|
|
4
4
|
"description": "esbuild plugin for compiling Tailwind CSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node",
|
|
@@ -31,19 +31,18 @@
|
|
|
31
31
|
"compile-watch:light": "nodemon --watch ./src/ -e '*' --exec 'yarn compile'",
|
|
32
32
|
"coverage": "jest --collect-coverage --passWithNoTests --config=./jest.config.js --runInBand",
|
|
33
33
|
"prepublishOnly": "yarn run build",
|
|
34
|
-
"publish": "
|
|
34
|
+
"publish": "yarn npm publish --tolerate-republish",
|
|
35
35
|
"test": "jest --passWithNoTests --config=./jest.config.js --runInBand",
|
|
36
|
-
"
|
|
36
|
+
"patch-when-changed": "git diff --quiet HEAD^...HEAD -- . && git diff --quiet -- . && git diff --quiet --staged -- . || yarn version patch"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"autoprefixer": "^10.4.20",
|
|
40
40
|
"esbuild": "^0.25.6",
|
|
41
41
|
"postcss": "^8.5.6",
|
|
42
|
-
"static-file-mapper-build": "0.3.
|
|
42
|
+
"static-file-mapper-build": "0.3.42",
|
|
43
43
|
"tailwindcss": "^3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@goldstack/utils-git": "0.2.22",
|
|
47
46
|
"@swc/core": "^1.15.8",
|
|
48
47
|
"@swc/jest": "^0.2.39",
|
|
49
48
|
"@types/jest": "^30.0.0",
|