fix: update scripts to work with tailwind jit in dev
This commit is contained in:
parent
9b51d0447d
commit
c734391094
9
package-lock.json
generated
9
package-lock.json
generated
@ -2644,6 +2644,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",
|
||||
|
@ -3,11 +3,11 @@
|
||||
"version": "0.3.2",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"start": "next-remote-watch ./data",
|
||||
"dev": "next dev",
|
||||
"start": "cross-env TAILWIND_MODE=watch next-remote-watch -p ./data",
|
||||
"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": {
|
||||
@ -41,6 +41,7 @@
|
||||
"@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",
|
||||
|
@ -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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user