Skip to content

Commit f1f562b

Browse files
BrianMitchLryanmr
andcommitted
Use tailwindcss CLI with jit for compiling styles
Co-authored-by: Ryan Rampersad <ryan.rampersad@gmail.com>
1 parent 71b7b1b commit f1f562b

File tree

4 files changed

+29
-32
lines changed

4 files changed

+29
-32
lines changed

package-lock.json

Lines changed: 22 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"build": "run-s build:css build:js",
1717
"start:js": "cross-env ELEVENTY_ENV=development TZ=America/Chicago eleventy --serve",
1818
"build:js": "cross-env ELEVENTY_ENV=production TZ=America/Chicago eleventy",
19-
"start:css": "postcss ./src/css/tailwind.css -o ./src/css/tailwind.include.css -w",
20-
"build:css": "postcss ./src/css/tailwind.css -o ./src/css/tailwind.include.css --env production",
19+
"start:css": "tailwindcss -i ./src/css/tailwind.css -o ./src/css/tailwind.include.css --watch",
20+
"build:css": "tailwindcss -i ./src/css/tailwind.css -o ./src/css/tailwind.include.css --minify",
2121
"lint": "pretty-quick --staged",
2222
"setup-git-hooks": "simple-git-hooks"
2323
},
@@ -33,11 +33,11 @@
3333
"npm-run-all": "^4.1.5",
3434
"postcss": "^8.3.5",
3535
"postcss-cli": "^8.3.1",
36-
"prettier": "^2.3.1",
36+
"prettier": "^2.3.2",
3737
"pretty-quick": "^3.1.1",
3838
"rimraf": "^3.0.2",
3939
"simple-git-hooks": "^2.4.1",
40-
"tailwindcss": "^2.2.2",
40+
"tailwindcss": "^2.2.4",
4141
"terser": "^5.7.0"
4242
},
4343
"repository": {
@@ -50,4 +50,4 @@
5050
"prettier": {
5151
"singleQuote": true
5252
}
53-
}
53+
}

postcss.config.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

tailwind.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2+
mode: 'jit',
23
purge: {
34
content: ['./src/**/*.{html,njk,svg,md,js}'],
45
},
@@ -46,5 +47,5 @@ module.exports = {
4647
4748
4849
font mono
49-
50+
5051
*/

0 commit comments

Comments
 (0)