fix: jit config

This commit is contained in:
Timothy Lin 2021-05-23 11:49:22 +08:00
parent 159ecd7d2b
commit d36a4aad91
3 changed files with 14 additions and 24 deletions

26
package-lock.json generated
View File

@ -1609,23 +1609,6 @@
"mini-svg-data-uri": "^1.2.3"
}
},
"@tailwindcss/jit": {
"version": "0.1.18",
"resolved": "https://registry.npmjs.org/@tailwindcss/jit/-/jit-0.1.18.tgz",
"integrity": "sha512-WNSEiwbggtO9n6+ok2fFdYmhqY20oqLmB82H23nY8P5WzijZbIshojoY3s/OvPD7cmvzkweZ6LLKGWuDS1/vLA==",
"dev": true,
"requires": {
"chokidar": "^3.5.1",
"dlv": "^1.1.3",
"fast-glob": "^3.2.5",
"lodash.topath": "^4.5.2",
"normalize-path": "^3.0.0",
"object-hash": "^2.1.1",
"parse-glob": "^3.0.4",
"postcss-selector-parser": "^6.0.4",
"quick-lru": "^5.1.1"
}
},
"@tailwindcss/typography": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/@tailwindcss/typography/-/typography-0.4.0.tgz",
@ -2644,6 +2627,15 @@
"sha.js": "^2.4.8"
}
},
"cross-env": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
"integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
"dev": true,
"requires": {
"cross-spawn": "^7.0.1"
}
},
"cross-spawn": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",

View File

@ -3,11 +3,11 @@
"version": "0.3.2",
"private": true,
"scripts": {
"start": "next-remote-watch ./data",
"dev": "next dev",
"start": "next-remote-watch data/blog --root . -p",
"dev": "cross-env TAILWIND_MODE=watch next dev",
"build": "next build && node ./scripts/generate-sitemap",
"serve": "next start",
"analyze": "env ANALYZE=true next build",
"analyze": "cross-env ANALYZE=true next build",
"prepare": "husky install"
},
"dependencies": {
@ -40,7 +40,7 @@
"devDependencies": {
"@next/bundle-analyzer": "10.2.0",
"@svgr/webpack": "^5.5.0",
"@tailwindcss/jit": "^0.1.18",
"cross-env": "^7.0.3",
"eslint": "^7.17.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-jsx-a11y": "^6.4.1",

View File

@ -3,9 +3,7 @@ const colors = require('tailwindcss/colors')
module.exports = {
mode: 'jit',
purge: {
content: ['./pages/**/*.js', './components/**/*.js', './layouts/**/*.js', './lib/**/*.js'],
},
purge: ['./pages/**/*.js', './components/**/*.js', './layouts/**/*.js', './lib/**/*.js'],
darkMode: 'class',
theme: {
extend: {