New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

res-dump-plugin

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

res-dump-plugin

Bundle assets are not imported by js. See https://github.com/jzzj/res-dump-service

latest
Source
npmnpm
Version
0.0.9
Version published
Weekly downloads
5
-79.17%
Maintainers
1
Weekly downloads
 
Created
Source

res-dump-plugin

Build assets that are not import by js. See https://github.com/jzzj/res-dump-service

Usage

plugins: [
	new ResDumpPlugin({
	  	commonFile: "common"
	})
]

What this for?

This plugin will do one thing: resolve all ${require('module')} to actually module, like this: '/path/to/your/resource.[filehash].js'
If your want use cdn, you can indicate cdn field in your config/production.js, you will get result like this:

${your-cdn}/${your-static-server-path/your-publich-path-for-js}/path/to/asset.[filehash].[original-suffix]

How hash append to resource?

I first will determine file is exists, if it is i will try to use git commit hash code, may be the resource not in git commit hash, then go to md5. If not, i will try to find file in [build folder](depends on your config) then do hash thing.

Keywords

res-dump

FAQs

Package last updated on 22 Dec 2016

Did you know?

Socket

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.

Install

Related posts