Skip to content

Commit 530a204

Browse files
committed
Update tailwind to use JIT
1 parent 720797c commit 530a204

File tree

3 files changed

+149
-95
lines changed

3 files changed

+149
-95
lines changed

Diff for: apps/components_guide_web/assets/package-lock.json

+144-91
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: apps/components_guide_web/assets/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"postcss": "^8.2.8",
2929
"postcss-import": "^14.0.0",
3030
"postcss-loader": "^5.2.0",
31-
"tailwindcss": "^2.0.4",
31+
"tailwindcss": "^2.1.1",
3232
"uglifyjs-webpack-plugin": "^2.2.0",
3333
"vue-loader": "^15.9.2",
3434
"vue-template-compiler": "^2.6.11",

Diff for: apps/components_guide_web/assets/tailwind.config.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
module.exports = {
2-
purge: ["../**/*.ex", "../**/*.eex", "../**/*.html", "../**/*.md"],
3-
plugins: [require("@tailwindcss/forms")],
2+
mode: 'jit',
3+
purge: ['../lib/**/*.{ex,eex,html,md}'],
4+
plugins: [require('@tailwindcss/forms')],
45
theme: {
56
extend: {
67
colors: {
7-
current: "currentColor",
8+
current: 'currentColor',
89
},
910
},
1011
},

0 commit comments

Comments
 (0)