mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Webpack: Fix accidental double typechecking (#18881)
This commit is contained in:
parent
aab224ef29
commit
6ea2d484b1
@ -1,5 +1,4 @@
|
|||||||
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 = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [
|
|
||||||
new ForkTsCheckerWebpackPlugin({
|
|
||||||
checkSyntacticErrors: true,
|
|
||||||
})
|
|
||||||
],
|
|
||||||
};
|
};
|
||||||
|
@ -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 = {}) =>
|
|||||||
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({
|
||||||
|
Loading…
Reference in New Issue
Block a user