Socket
Socket
Sign inDemoInstall

webpack-source-plugin

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-source-plugin

download pic & font file when packing


Version published
Maintainers
1
Created
Source

使用说明

webpack-source-plugin会自动将源码中的线上资源下载到本地,并替换源码中的引用路径。

使用文档

const defaultOptions = {
  // 静态资源匹配规则
  regexp: /https:\/\/(.)*\.png/,
  // 静态资源替换前缀
  outputPrefix: 'public'
}

Keywords

FAQs

Package last updated on 26 Sep 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc