@dw/wx-audio
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "@dw/wx-audio", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "wx-audio", | ||
@@ -9,2 +9,3 @@ "main": "lib/wx-audio.js", | ||
"build": "webpack --mode production", | ||
"build:publish": "webpack --mode production && npm version patch && npm publish", | ||
"dev": "webpack-dev-server --mode development --progress --colors", | ||
@@ -14,2 +15,6 @@ "watch": "webpack --progress --colors --watch", | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/ifmiss/wx-audio.js" | ||
}, | ||
"files": [ | ||
@@ -19,6 +24,2 @@ "lib/", | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/ifmiss/wx-audio.js" | ||
}, | ||
"keywords": [ | ||
@@ -40,18 +41,14 @@ "audio", | ||
"babel-preset-latest": "^6.24.1", | ||
"better-scroll": "^1.8.4", | ||
"compass-mixins": "^0.12.10", | ||
"css-loader": "^0.28.10", | ||
"less": "^3.9.0", | ||
"less-loader": "^4.1.0", | ||
"extract-text-webpack-plugin": "^4.0.0-beta.0", | ||
"html-webpack-plugin": "^3.0.6", | ||
"node-sass": "^4.11.0", | ||
"sass-loader": "^6.0.7", | ||
"style-loader": "^0.20.3", | ||
"stylus": "^0.54.5", | ||
"stylus-loader": "^3.0.2", | ||
"url-loader": "^1.0.1", | ||
"url-parse": "^1.4.3", | ||
"webpack": "^4.1.1", | ||
"webpack-cli": "^2.1.5", | ||
"webpack-dev-server": "^3.1.1" | ||
"webpack-dev-server": "^3.1.1", | ||
"webpack-cli": "^3.3.1" | ||
} | ||
} |
@@ -19,3 +19,4 @@ # wx-audio | ||
```js | ||
import WxAudio from 'wx-audio' | ||
import WxAudio from '@dw/wx-audio/lib/wx-audio.css' | ||
import WxAudio from '@dw/wx-audio' | ||
``` | ||
@@ -37,2 +38,3 @@ | ||
width: '320px', | ||
autoplay: true, | ||
loop: true, | ||
@@ -53,2 +55,3 @@ ended: function () { | ||
- ended 方法,是一个回调,可在音乐播放结束之后执行其他的代码 | ||
- autoplay 属性, 是否自动播放,这个只能在微信浏览器以及只设置静态src才能自动播放 | ||
### 方法 | ||
@@ -55,0 +58,0 @@ ```js |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
17
76
0
23685
175