mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 02:15:01 +00:00
Clean up library code
This commit is contained in:
parent
6da9ba0f2c
commit
8e14485622
2 changed files with 7 additions and 7 deletions
|
|
@ -50,7 +50,7 @@ module.exports = {
|
|||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, "../built"),
|
||||
filename: "[name].js",
|
||||
filename: "winamp.[name].js",
|
||||
library: "winamp2js",
|
||||
libraryTarget: "umd"
|
||||
}
|
||||
|
|
|
|||
12
library.html
12
library.html
|
|
@ -6,22 +6,22 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<div id='winamp2-js'></div>
|
||||
<script src="./built/winamp.bundle.js"></script>
|
||||
<div id='app'></div>
|
||||
<script src="./built/winamp.bundle.min.js"></script>
|
||||
<script>
|
||||
const Winamp = window.winamp2js;
|
||||
new Winamp({
|
||||
initialTracks: [{
|
||||
metaData: {
|
||||
artits: "DJ Mike Llama",
|
||||
artist: "DJ Mike Llama",
|
||||
title: "Llama Whippin' Intro"
|
||||
},
|
||||
url: "https://d38dnrh1liu4f5.cloudfront.net/projects/winamp2-js/mp3/llama-2.91.mp3"
|
||||
url: "./mp3/llama-2.91.mp3"
|
||||
}],
|
||||
initialSkin: {
|
||||
url: "https://d38dnrh1liu4f5.cloudfront.net/projects/winamp2-js/skins/base-2.91.wsz"
|
||||
url: "./skins/base-2.91.wsz"
|
||||
},
|
||||
}).renderWhenReady(document.getElementById('winamp2-js'));
|
||||
}).renderWhenReady(document.getElementById('app'));
|
||||
</script>
|
||||
</body>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue