Skip to content

davis-hd/name_md5-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Name_MD5 Webpack Plugin

Install

npm install name_md5-webpack-plugin --save-dev
# or
yarn add name_md5-webpack-plugin --dev

Usage

// webpack.config.js:

const Name_md5Plugin = require('name_md5-webpack-plugin');

export default {
  plugins: [
    new Name_md5Plugin({
      source: 'dist',
      destination: 'dist/tofile.zip',
      openUrl: 'https://baidu.com'
    }),
  ],
}

# or

// vue.config.js:
module.exports = {
  configureWebpack: {
    plugins: [
      new Name_md5Plugin({
        source: "dist",
        destination: "dist/tofile.zip",
        openUrl: 'https://baidu.com'
      }),
    ],
  },
}

Options

  • source[string] - 需要压缩的文件夹
  • destination[string] - 输出在该目录下的压缩文件
  • openUrl[string] - 打包完成后默认浏览器打开地址

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published