UNPKG

@cocalc/static

Version:

CoCalc's static frontend Webpack-based build system and framework

14 lines (13 loc) 595 B
/* Plugin to produce an HTML map showing the contents of our bundles. NOTE: We use analyzerMode="static" to get a static file (dist/report.html) instead of running a webserver, which gets complicated in some environments. */ module.exports = function (registerPlugin, params) { const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer"); registerPlugin("BundleAnalyzerPlugin -- visualize size and content of webpack output files", new BundleAnalyzerPlugin({ analyzerMode: "static", reportFilename: "measure.html", })); }; //# sourceMappingURL=measure.js.map