1.0.0 • Published 4 years ago
upload-to-cdn-webpack-plugin v1.0.0
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-devThen 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',
}),
],
};1.0.0
4 years ago