![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
chunks-2-json-webpack-plugin
Advanced tools
Plugin for webpack 4, that outputs build files to JSON
npm i --save-dev chunks-2-json-webpack-plugin
Webpack is a great tool and has without a doubt revolutionized the way we build frontend applications. However usually, due to the (great) caching strategy, chunk files will have hash appended to their file name. And if you want to use your build in an env, that does not know anything about this, it becomes complicated to inject the build in your app.
Therefore this plugin was build, as it will output your chunks in a JSON file, that will allow other apps to understand the structure of the build.
const Chunks2JsonPlugin = require('chunks-2-json-webpack-plugin');
const path = require('path');
module.exports = {
entry: './path/to/my/entry/file.js',
output: {
filename: 'my-first-webpack.bundle.js',
path: path.resolve(__dirname, 'dist')
},
plugins: [
new Chunks2JsonPlugin({ outputDir: 'dist/', filename: 'my-app.json' })
]
};
{
"chunk-vendors": {
"js": "/js/chunk-vendors.fc40696c.js",
"jsMap": "/js/chunk-vendors.fc40696c.js.map"
},
"app": {
"css": "/css/app.eb829ccc.css",
"js": "/js/app.dd31cdcb.js",
"jsMap": "/js/app.dd31cdcb.js.map"
}
}
There are 2 input options available
Option | Description |
---|---|
outputDir | Folder in which to output the JSON file. If the folder does not exist, we'll try to create it |
filename | Name of the outputed JSON file |
Feel free to open an issue.
FAQs
Plugin for webpack 4, that outputs build files to JSON
The npm package chunks-2-json-webpack-plugin receives a total of 0 weekly downloads. As such, chunks-2-json-webpack-plugin popularity was classified as not popular.
We found that chunks-2-json-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.