Explorar el Código

build命令还原eslint .

fogwind hace 1 semana
padre
commit
98fc6d3bbb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      package.json

+ 1 - 1
package.json

@@ -4,7 +4,7 @@
   "private": true,
   "scripts": {
     "dev": "next dev -p 3001",
-    "build": "cross-env NODE_ENV=production next build",
+    "build": "cross-env NODE_ENV=production eslint . && next build",
     "start": "next start -p 3001",
     "lint": "eslint .",
     "lint:fix": "next lint --fix",