+
50
-

npm run build打包如何关闭lint检查?

npm run build打包如何关闭lint检查?


网友回复

+
0
-

如果是next打造的话

编辑next.config.js ,将ignoreDuringBuilds设为true即可

module.exports = {
eslint: {
// Warning: This allows production builds to successfully complete even if
// your project has ESLint errors.
ignoreDuringBuilds: true,
},
}

我知道答案,我要回答