mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-05-01 12:23:44 +02:00
Reduce chart bundle size
This commit is contained in:
@@ -66,6 +66,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
symlinks: false,
|
symlinks: false,
|
||||||
},
|
},
|
||||||
|
externals: {
|
||||||
|
// Mark moment as an external to exclude it from the Chart.js build since we don't need to use
|
||||||
|
// it for anything.
|
||||||
|
moment: 'moment',
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new AssetsManifestPlugin({ writeToDisk: true, publicPath: true, integrity: true, integrityHashes: ['sha384'] }),
|
new AssetsManifestPlugin({ writeToDisk: true, publicPath: true, integrity: true, integrityHashes: ['sha384'] }),
|
||||||
!isProduction ? new ForkTsCheckerWebpackPlugin({
|
!isProduction ? new ForkTsCheckerWebpackPlugin({
|
||||||
|
|||||||
Reference in New Issue
Block a user