Commit 6ea2d484 by kay delaney Committed by GitHub

Webpack: Fix accidental double typechecking (#18881)

parent aab224ef
const path = require('path'); const path = require('path');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
module.exports = { module.exports = {
target: 'web', target: 'web',
...@@ -93,9 +92,4 @@ module.exports = { ...@@ -93,9 +92,4 @@ module.exports = {
}, },
}, },
}, },
plugins: [
new ForkTsCheckerWebpackPlugin({
checkSyntacticErrors: true,
})
],
}; };
...@@ -69,7 +69,7 @@ module.exports = (env = {}) => ...@@ -69,7 +69,7 @@ module.exports = (env = {}) =>
checkSyntacticErrors: true, checkSyntacticErrors: true,
}), }),
new MiniCssExtractPlugin({ new MiniCssExtractPlugin({
filename: "grafana.[name].[hash].css" filename: 'grafana.[name].[hash].css'
}), }),
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({
filename: path.resolve(__dirname, '../../public/views/error.html'), filename: path.resolve(__dirname, '../../public/views/error.html'),
...@@ -89,7 +89,7 @@ module.exports = (env = {}) => ...@@ -89,7 +89,7 @@ module.exports = (env = {}) =>
new webpack.HotModuleReplacementPlugin(), new webpack.HotModuleReplacementPlugin(),
new webpack.DefinePlugin({ new webpack.DefinePlugin({
'process.env': { 'process.env': {
'NODE_ENV': JSON.stringify('development') NODE_ENV: JSON.stringify('development')
} }
}), }),
// new BundleAnalyzerPlugin({ // new BundleAnalyzerPlugin({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment