Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to use this with Webpack / import ? #76

Open
Dylan190774 opened this issue Feb 25, 2022 · 2 comments
Open

Any way to use this with Webpack / import ? #76

Dylan190774 opened this issue Feb 25, 2022 · 2 comments

Comments

@Dylan190774
Copy link

Dylan190774 commented Feb 25, 2022

Hi, I love this project, so good to hear those old Amiga mod's again!

I'm trying to implement the standalone player in a little web game I'm making.
I use Vue, which uses Webpack5 to build the app, but I only could get it working with putting :

<script src="js/bassoonplayer-min.js"></script>

in the main index.html and use BassoonTracker as a global object.
I rather would like to do this in the Webpack-way, with an import in the Vue file that uses the player.

Any idea's?

@steffest
Copy link
Owner

Sure, I'll whip up a demo.
In the mean time you could take a look at https://github.com/webpack/docs/wiki/shimming-modules

To be frank: while I see the added value of webpack (and npm in general), I tried to stay clear of it in Bassoontracker. Webpack is like a sledgehammer approach, Bassoontracker is more like a surgical scalpel.

@Dylan190774
Copy link
Author

I agree, but with many frameworks like Quasar, Webpack is the default build-method. Quasar will change to Vite soon, by the way. Don't know if that makes a difference :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants