mirror of
https://github.com/grafana/grafana.git
synced 2025-09-18 12:03:52 +08:00
Build: Enable persistent cache for faster Webpack builds (#41430)
* build(webpack): enable caching for development and production builds * build(webpack): introduce unminified production build script * build(typescript): introduce incremental flag to cache typechecking * chore(git): ignore typescript cache file * chore(webpack): bump dependencies to latest
This commit is contained in:
@ -59,6 +59,15 @@ module.exports = (env = {}) =>
|
||||
splitChunks: false,
|
||||
},
|
||||
|
||||
// enable persistent cache for faster cold starts
|
||||
cache: {
|
||||
type: 'filesystem',
|
||||
name: 'grafana-default-development',
|
||||
buildDependencies: {
|
||||
config: [__filename],
|
||||
},
|
||||
},
|
||||
|
||||
plugins: [
|
||||
parseInt(env.noTsCheck, 10)
|
||||
? new DefinePlugin({}) // bogus plugin to satisfy webpack API
|
||||
|
Reference in New Issue
Block a user