
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
map-webpack-plugin
Advanced tools
npm install map-webpack-plugin
var MapPlugin = require('map-webpack-plugin');
var mapPluginInstance = new MapPlugin({
filename:'map.json',//输出的文件名 即保存的文件
path: './',//输出的目录 即保存的路径
rule: { //定义输出的类型,非必填项
font: /\.woff$/i
},
filter: ['.action'],//过滤文件类型
merge: true //跟文件的json数据进行合并 两种情况,如果是true or false 则表示是否合并配置中的filename文件,如果是string类型,则需要是一个文件的路径(此文件必须是json文件,并且没有语法错误),这个时候会合并提供的这个文件,比如:path.join(__dirname, './core.json')
});
module.exports = {
...
plugins: [
mapPluginInstance
]
};
{
"js":{
"js/a.js":"js/a.3efdr5.js"
},
"css":{
"css/a.css":"css/a.3efdr5.css"
},
"img":{
"img/err.png":"img/err.6sfetg.png"
},
"font":{
"fonts/iconfont.woff": "fonts/iconfont.35c9d1.woff"
}
"other":{}
}
FAQs
webpack map plugin
We found that map-webpack-plugin 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.