![]() Path to webpack stats JSON file bundleDirĭirectory containing all generated bundles. Webpack-bundle-analyzer Īrguments are documented below: bundleStatsFile You can generate it using BundleAnalyzerPlugin with generateStatsFile option set to true or with this simple You can analyze an existing bundle if you have a webpack stats JSON file. ![]() Used to control how much details the plugin outputs. ![]() If multiple patterns are provided asset should match at least one of them to be excluded.ĭefault: info. If pattern is a function it should have the following signature (assetName: string) => boolean and should return true to exclude matching asset. If pattern is a string it will be converted to RegExp via new RegExp(str). Patterns that will be used to match against asset names to exclude them from the report. If analyzerPort is auto, the operating system will assign an arbitrary unused portĭefault: null. Port that will be used in server mode to start HTTP server. Host that will be used in server mode to start HTTP server.ĭefault: 8888. In disabled mode you can use this plugin to just generate Webpack Stats JSON file by setting generateStatsFile to true.ĭefault: 127.0.0.1. In json mode single JSON file with bundle report will be generated. In static mode single HTML file with bundle report will be generated. In server mode analyzer will start HTTP server to show bundle report. New BundleAnalyzerPlugin ( options? : object ) Nameĭefault: server.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |