removed custom webpack code and removed unneeded babel deps

This commit is contained in:
William Grant 2021-09-20 11:54:00 +10:00
parent d4fbdae660
commit 478374481d
5 changed files with 37 additions and 1178 deletions

View File

@ -1,22 +0,0 @@
{
"env": {
"development": {
"plugins": [
["tailwind", { "ssr": true, "displayName": true, "preprocess": false }]
],
"presets": ["next/babel"]
},
"production": {
"plugins": [
["tailwind", { "ssr": true, "displayName": true, "preprocess": false }]
],
"presets": ["next/babel"]
},
"test": {
"presets": ["@babel/preset-env", "@babel/preset-react"]
}
},
"plugins": [
["tailwind", { "ssr": true, "displayName": true, "preprocess": false }]
]
}

View File

@ -1 +0,0 @@
functions

View File

@ -4,20 +4,6 @@ const withFonts = require('next-fonts');
const withSvgr = require('next-svgr');
const nextConfig = {
webpack(config) {
const rules = [{}];
return {
...config,
module: {
...config.module,
rules: [...config.module.rules, ...rules],
},
node: {
fs: 'empty',
},
};
},
env: {
CONTENTFUL_SPACE_ID: process.env.CONTENTFUL_SPACE_ID,
CONTENTFUL_ACCESS_TOKEN: process.env.CONTENTFUL_ACCESS_TOKEN,

View File

@ -39,9 +39,6 @@
"xss": "^1.0.9"
},
"devDependencies": {
"@babel/core": "^7.12.17",
"@babel/preset-env": "^7.12.17",
"@babel/preset-react": "^7.12.13",
"@contentful/rich-text-types": "^15.3.5",
"@tailwindcss/aspect-ratio": "^0.2.1",
"@tailwindcss/forms": "^0.3.3",
@ -55,16 +52,13 @@
"@typescript-eslint/eslint-plugin": "^3.9.0",
"@typescript-eslint/parser": "^3.9.0",
"autoprefixer": "^10.2.4",
"babel-jest": "^26.6.3",
"babel-plugin-tailwind": "^0.1.10",
"babel-preset-env": "^1.7.0",
"contentful-cli": "^1.8.17",
"cssnano": "^4.1.11",
"eslint": "^7.7.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.6",
"eslint-plugin-jsx-a11y": "^6.3.1",
"husky": "^4.2.5",
"jest": "^26.6.3",
"lint-staged": "^10.2.11",
@ -72,8 +66,7 @@
"prettier": "^2.0.5",
"tailwindcss": "^2.2.4",
"ts-jest": "^26.5.1",
"typescript": "^4.3.5",
"webpack-cli": "^3.3.11"
"typescript": "^4.3.5"
},
"lint-staged": {
"./**/*.{ts,tsx}": "npm run lint:fix"

1167
yarn.lock

File diff suppressed because it is too large Load Diff