![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
webpack-build-report
Advanced tools
Webpack plugin that make it able to save your build reports in an .md
file after each build.
webpack.config.js
// Import the plugin
const BuildReportPlugin = require('webpack-build-report')
// Let's say you build a library of React components. you build them one by one
const components = fs.readdirSync(`${SRC_DIR}/components/`)
const entries = {}
components.forEach(component => {
const name = component.split('.')[0]
entries[name] = `${SRC_DIR}/components/${name}`
})
// Add the plugin to your webpack config
const config = {
entry: entries,
plugins: [
// other plugins ...,
new BuildReportPlugin({
assets: true,
output: `${SRC_DIR}/doc/build-report.md`,
...
})
]
}
// ...
module.exports = config
Option | Type | Default value | Description |
---|---|---|---|
append | bool | false | Appends the report to an existing .md file, based on the output option |
assets | bool | true | Adds the assets stats to the final report |
output | string | 'build-report.md' | Tell the plugin where you want your report to be saved. Must be an .md file ! |
saveStats | bool | false | Saves the complete build stats in .build-stats.json , and allow your report to show comparisons to the last build |
After your build has finished, you'll find a build-report.md
file, containing:
Asset name | Asset size | Size difference |
---|---|---|
AlertIllustration.js | 17.41 kB | +6.45 kB |
Button.js | 8.41 kB | - |
Checkbox.js | 7.26 kB | - |
Loader.js | 6.07 kB | -21.12 kB |
Modal.js | 15.93 kB | - |
PhoneLoader.js | 16.66 kB | -4.00 kB |
FAQs
Build a report file after a Webpack build
The npm package webpack-build-report receives a total of 2 weekly downloads. As such, webpack-build-report popularity was classified as not popular.
We found that webpack-build-report demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.