Always tscheck, ignore eslint in prod
This commit is contained in:
parent
0d35ab95fd
commit
85dcfd4cf5
2 changed files with 8 additions and 5 deletions
|
@ -76,11 +76,11 @@ module.exports = {
|
|||
plugins: [
|
||||
new webpack.ContextReplacementPlugin(/brace[/\\](mode|worker)/, new RegExp(`^\.\/(${modes.join('|')})$`)),
|
||||
new AssetsManifestPlugin({ writeToDisk: true, publicPath: true, integrity: true, integrityHashes: ['sha384'] }),
|
||||
!isProduction ? new ForkTsCheckerWebpackPlugin({
|
||||
new ForkTsCheckerWebpackPlugin(isProduction ? {} : {
|
||||
eslint: {
|
||||
files: `${path.join(__dirname, '/resources/scripts')}/**/*.{ts,tsx}`,
|
||||
},
|
||||
}) : null,
|
||||
}),
|
||||
process.env.ANALYZE_BUNDLE ? new BundleAnalyzerPlugin({
|
||||
analyzerHost: '0.0.0.0',
|
||||
analyzerPort: 8081,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue