Socket
Socket
Sign inDemoInstall

create-spare-webpack-plugin

Package Overview
Dependencies
19
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    create-spare-webpack-plugin

Create spare webpack plugin


Version published
Weekly downloads
5
increased by66.67%
Maintainers
1
Install size
1.06 MB
Created
Weekly downloads
 

Readme

Source

Create Spare Webpack Plugin

Install the plugin via NPM:

npm i create-spare-webpack-plugin --save

webpack.config.js

module.exports = {
  entry: './src/index.js',
  plugins: [
    new CreateSpareWebpackPlugin({
      // 备用文件目录,比对是否存在,不存在生成,根据sep 目录规则生成
      path: PATH.join(cachePath, './md'),
      sep: '___', // 检查目标目录文件,文件名存储,文件夹+下划线间隔+文件名
      directoryTrees: { // 索引目录
        dir: cmd.markdownDirs,
        mdconf: true,
        extensions: /\.md$/,
      },
    }),
  ]
}

FAQs

Last updated on 24 Apr 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc