add exports and fix the entry point of the module
This commit is contained in:
parent
891bc412ff
commit
86b0dc3d05
|
|
@ -79,6 +79,13 @@ ap.init();
|
|||
+ `ap.play()`
|
||||
+ `ap.pause()`
|
||||
|
||||
#### Work with module bundler
|
||||
|
||||
```js
|
||||
var APlayer = require('APlayer');
|
||||
var ap = new APlayer({...});
|
||||
```
|
||||
|
||||
### With lrc
|
||||
|
||||
#### LRC format:
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"name": "aplayer",
|
||||
"version": "1.3.2",
|
||||
"version": "1.3.3",
|
||||
"description": "Wow, such a beautiful html5 music player",
|
||||
"main": "APlayer.js",
|
||||
"main": "dist/APlayer.min.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
|
|
|
|||
967
src/APlayer.js
967
src/APlayer.js
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue