0.1.6 • Published 7 years ago

aliyun-oss-loader v0.1.6

Weekly downloads
4
License
WTFPL
Repository
github
Last release
7 years ago

aliyun-oss-loader

a webpack loader for uploading files to aliyun oss

v dw dm dy l

usage

  • npm install aliyun-oss-loader --save-dev

  • set config in your webpack file

    module: {
        loaders: [
            {
                test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
                loader: 'aliyun-oss-loader',
                options: {
                    region: 'xxxxxxxxx',
                    bucket: 'xxxxxx',
                    accessKeyId: 'xxxxx',
                    accessKeySecret: 'xxxx',
                    name: 'folder/[name].[hash].[ext]',
                    https: true,
                    domain: 'img.xxx.com'
                }
            }
        ]
    }

params

  • region

    • String Required
  • bucket

    • String Required
  • accessKeyId

    • String Required
  • accessKeySecret

    • String Required
  • name

  • https

    • Boolean Optional default false
  • domain
    • String Optional support customize domain name
0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago