2.6.18 • Published 5 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
5 years ago
2.5.18
5 years ago
2.5.17
5 years ago
2.5.16
5 years ago
2.5.15
5 years ago
2.5.14
5 years ago
2.3.13
5 years ago
2.4.13
5 years ago
2.5.13
5 years ago
1.3.13
5 years ago
1.3.11
5 years ago
1.3.12
5 years ago
1.3.10
5 years ago
1.3.9
5 years ago
1.3.8
5 years ago
1.3.7
5 years ago
1.3.6
5 years ago
1.3.5
5 years ago
1.2.5
5 years ago
1.1.5
5 years ago
1.1.4
5 years ago
1.1.3
5 years ago
1.1.2
5 years ago
1.1.1
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago