Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alioss-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alioss-webpack-plugin

Webpack plugin to auto upload files to Ali OSS.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

alioss-webpack-plugin

Install

yarn add alioss-webpack-plugin -D

Example

const AliossWebpackPlugin = require('alioss-webpack-plugin')

webpackConfig.plugins.push(new AliossWebpackPlugin({
  ossOptions: {
    accessKeyId: 'your-key-id',
    accessKeySecret: 'your-key-secret',
    region: 'your-region', // eg: oss-cn-hangzhou
    bucket: ''
  },
  prefix: '', // oss directory prefix; eg: auto_upload_ci/test
  exclude: /.*\.html$/,   // Optional, default: /.*/
  enableLog: true,        // Optional, default: true
  ignoreError: false,      // Optional, default: false
  deleteMode: true        // Optional, default: true
}))

Options

  • prefix: The directory name which will accept uploaded files.
  • exclude: Support RegExp syntax, matched files will not be upload to oss
  • enableLog: Whether or not show detail infos for you, just should be enable in development mode.
  • ignoreError: Whether or not stop build if upload error.
    • true: will be stop
    • false: will be not stop
  • deleteMode: Whether or not delete file after the file uploaded succesfully.
    • true: delete
    • false: not delete

FAQs

Package last updated on 19 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc