Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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:
{
"./images/favicon.png": "/assets/8f6f13d598e912ac61d3bc88b248ec8e.png",
"./images/javascript.png": "/assets/32e1e05a1be1599842f488647e1d04f0.png"
}
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.
Add to the plugins array in your webpack config:
var AssetMapPlugin = require('asset-map-webpack-plugin');
module.exports = {
...
plugins: [
new AssetMapPlugin(publicPath, outputFilename)
]
};
FAQs
Webpack plugin that creates a map of assets to public url slug for server agnostic usage.
The npm package asset-map-webpack-plugin receives a total of 3 weekly downloads. As such, asset-map-webpack-plugin popularity was classified as not popular.
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.