![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.
asset-map-webpack-plugin
Advanced tools
Webpack plugin that creates a map of assets to public url slug for server agnostic usage.
Creates a json file that any server side technology can consume for asset declarations. Example output file:
{
"assets": {
"./smiley.jpeg": "/assets/smiley-db4f287d06928156270ca185fef0e026.jpeg",
"./test-checklist.jpeg": "/assets/test-checklist-b3b0fe76f4485db43467876f664d1f62.jpeg"
},
"chunks": {
"index": [
"/assets/index-2c9c445686f51177cf62.js"
"/assets/index-2c9c445686f51177cf62.css"
]
}
}
The key is the relative path from the generated file to the image location in your source location. The value is the public url slug generated by webpack.
For webpack 1, use version 2.x of asset-map-webpack-plugin
; for webpack 2/3, use version 3.x.
Add to the plugins array in your webpack config:
import AssetMapPlugin from 'asset-map-webpack-plugin';
export default {
...
plugins: [
/**
* AssetMapPlugin
*
* @param {string} outputFile - What to name the output JSON file (written to the same directory as the other webpack assets)
* @param {string} [relativeTo] - Key assets relative to this path, otherwise defaults to be relative to webpack `path`
*/
new AssetMapPlugin(outputFilename, relativeTo)
]
};
FAQs
Webpack plugin that creates a map of assets to public url slug for server agnostic usage.
We found that asset-map-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.