Skip to content

Commit

Permalink
Arrumando build para umd e exemplos
Browse files Browse the repository at this point in the history
  • Loading branch information
natansevero committed Oct 31, 2018
1 parent ffe1c52 commit 54bbeb4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
<script src="../dist//spotify-wrapper.umd.js"></script>

<script>
const albums = spotifyWrapper.searchAlbums('Muse');
const spotify = new spotifyWrapper({
token: 'YOUR_TOKEN_HERE'
});
const albums = spotify.search.albums('Muse');
const albumsEl = document.getElementById('albums');

albums
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('./src/index').default;
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const path = require('path');
const include = path.join(__dirname, 'src');

module.exports = {
entry: './src/index',
entry: './index',
output: {
path: path.join(__dirname, 'dist'),
libraryTarget: 'umd',
Expand Down

0 comments on commit 54bbeb4

Please sign in to comment.