chore: upgrade next-remote-watch and use tailwind jit

This commit is contained in:
Timothy Lin 2021-04-02 22:35:26 +08:00
parent dcada7f529
commit debc775a11
4 changed files with 1251 additions and 1549 deletions

2792
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -39,6 +39,7 @@
"devDependencies": {
"@next/bundle-analyzer": "10.1.3",
"@svgr/webpack": "^5.5.0",
"@tailwindcss/jit": "^0.1.18",
"eslint": "^7.17.0",
"eslint-config-prettier": "^7.1.0",
"eslint-plugin-jsx-a11y": "^6.4.1",
@ -50,7 +51,7 @@
"husky": "^4.3.7",
"lint-staged": "^10.5.3",
"next-compose-plugins": "^2.2.1",
"next-remote-watch": "^0.3.0",
"next-remote-watch": "^1.0.0",
"prettier": "2.2.1",
"rehype": "11.0.0",
"remark-frontmatter": "3.0.0",

View File

@ -1,6 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
'@tailwindcss/jit': {},
autoprefixer: {},
},
}

View File

@ -4,9 +4,6 @@ const colors = require('tailwindcss/colors')
module.exports = {
purge: {
content: ['./pages/**/*.js', './components/**/*.js', './layouts/**/*.js', './lib/**/*.js'],
options: {
safelist: ['type'], // [type='checkbox']
},
},
darkMode: 'class',
theme: {