2.6.18 • Published 3 years ago
file-ziper-and-uploader v2.6.18
File-Ziper-And-Uploader
Webpack Uploader Plugin. Sending filterd files generated by webpack to service.
install:
npm i file-ziper-and-uploader -D
document:
Add plugin to your webpack.config.js. Using code below to send a zip package to target service when webpack has generrated assests(js, image, css, etc.).
const { FileZiperAndUploader } = require('file-ziper-and-uploader');
...
plugins: [
new FileZiperAndUploader([
//task one : ziping all files and sending them to localhost:8081
{
url: 'localhost:8081', //* your target address service to receive zip
token: '',// your service auth string decided by your service code.
zipName: 'puppy.zip', // zip name
target: 'all' // regular expression or 'all' to filter files to zip
},
//task two: just ziping files with suffix .min.js and sending them to localhost:8082
{
url: 'http://localhost:8082'
token: '',
zipName: 'monitor.min.zip',
target: /\.min\.js$/
}
])
],
Default value will be added to every task if not specified.
url: 'http://localhost:8080/upload',
zipName: 'source-map.zip',
target: /\.map$/
This package can be used for sourcemap files transfering or test enviroment auto deploing. You can contact alberteinstein007@126.com when you have problems.
2.6.18
3 years ago
2.5.18
3 years ago
2.5.17
4 years ago
2.5.16
4 years ago
2.5.15
4 years ago
2.5.14
4 years ago
2.3.13
4 years ago
2.4.13
4 years ago
2.5.13
4 years ago
1.3.13
4 years ago
1.3.11
4 years ago
1.3.12
4 years ago
1.3.10
4 years ago
1.3.9
4 years ago
1.3.8
4 years ago
1.3.7
4 years ago
1.3.6
4 years ago
1.3.5
4 years ago
1.2.5
4 years ago
1.1.5
4 years ago
1.1.4
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago