Skip to content

Commit

Permalink
修改版本号和 webpack 配置
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Oct 31, 2017
1 parent 6109e54 commit 000dd1e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
16 changes: 4 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cos-js-sdk-v5",
"version": "0.1.3",
"version": "0.1.5",
"description": "cos js sdk v5",
"main": "index.js",
"scripts": {
Expand All @@ -19,18 +19,10 @@
},
"homepage": "https://github.com/tencentyun/cos-js-sdk-v5#readme",
"dependencies": {
"async": "^2.2.0",
"eventproxy": "^0.3.5",
"json-loader": "^0.5.7",
"lodash": "^4.17.4",
"querystring": "^0.2.0",
"request": "^2.81.0",
"xml2js": "^0.4.17"
"querystring": "^0.2.0"
},
"devDependencies": {
"babel-core": "^6.25.0",
"babel-loader": "^7.1.1",
"express": "^4.15.4",
"webpack": "^3.6.0"
"babel-loader": "^7.1.2",
"webpack": "^3.8.1"
}
}
6 changes: 4 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ module.exports = {
output: {
path: path.resolve(__dirname, './dist'),
publicPath: '/dist/',
filename: 'cos-js-sdk-v5.js'
filename: 'cos-js-sdk-v5.js',
libraryTarget: 'umd',
library: 'COS',
},
module: {
rules: [
Expand Down Expand Up @@ -42,6 +44,6 @@ if (process.env.NODE_ENV === 'production') {
}),
new webpack.LoaderOptionsPlugin({
minimize: true
})
}),
])
}

0 comments on commit 000dd1e

Please sign in to comment.