Build stats reporter for atlassian webresource webpack plugin
npm i -D atlassian-wrm-build-report-plugin
// webpack.config.js
const WrmBuildReportPlugin = require('atlassian-wrm-build-report-plugin');
module.exports = {
plugins: [
new WRMPlugin(...),
new WrmBuildReportPlugin({
filename: './report.json'
})
]
};
Only works in conjunction with the atlassian webresource webpack plugin. Must be initialized after!
Type: string
Path to report file that will be generated.
Type: boolean
Flag for adding external dependencies.
Calculates the size of external dependencies by requiring them from a running instance.
The url to that instance needs to be passed via baseUrl
.
Type: string
URL to your service instance. Needed to calculate external sizes (if externals
is true
).
Needs to be the base URL to an instance serving WRM assets (e.g. Jira/Bitbucket/Confluence/Crowd etc...)
Type: boolean
Default: false
Removes meta-data about external dependencies from the resulting stats file.
Type: boolean
Default: false
Flag for generating static report.
Read more about wrm dependencies analyzer.
baseUrl
needs to be specified for this to work correctly.
Type: string
Default: static-report.html
File name for static report.