Skip to content

xinggangling/progress-end-compress-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

progress-end-compress-webpack-plugin

Installation

npm i -D progress-end-compress-webpack-plugin

Usage

const ProgressEndCompressPlugin = require('progress-end-compress-webpack-plugin');
new ProgressEndCompressPlugin({
  compressDir: {
    paths: [{
      sourceDir: path.resolve(__dirname, 'dist'),
      targetDir: path.resolve(__dirname),
      name: 'dist',
      hash: [hash]
    }]
  },
  sshConfig: {
    host: '192.168.3.116',
    username: 'root',
    port: 22,
    password: '123456',
    romotePath: '/home/reedsec/web/web-api-c2b/web-view/',
    replaceDirectly: false, // whether replace build folder
    rename: 'dist-new' // whether rename build folder name
  }
})

script: {
  build: 'webpack webpack.config.js --useSsh'
}

Image Example

building

图片

builded

图片

server side

图片

if set replaceDirectly = true; build folder will be replace directly.

About

progress-end-compress-webpack-plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published