upload-to-cdn-webpack-plugin
v1.0.0
Published
upload && compression assets to CDN
Downloads
4
Maintainers
Readme
upload-to-cdn-webpack-plugin
Copies individual files or entire directories, which already exist, to the build directory.
Getting Started
To begin, you'll need to install upload-to-cdn-webpack-plugin
:
npm install upload-to-cdn-webpack-plugin --save-dev
Then add the plugin to your webpack
config. For example:
webpack.config.js
module.exports = {
plugins: [
new UploadToCDNPlugin({
gz_path: path.join(__dirname, '../gzip'),
gz_name: 'backup',
upload_url: 'http://127.0.0.1:8100/deploy',
}),
],
};