BassoonTracker icon indicating copy to clipboard operation
BassoonTracker copied to clipboard

Any way to use this with Webpack / import ?

Open Dylan190774 opened this issue 3 years ago • 2 comments

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?

Dylan190774 avatar Feb 25 '22 12:02 Dylan190774

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.

steffest avatar Mar 15 '22 09:03 steffest

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 :)

Dylan190774 avatar Mar 17 '22 02:03 Dylan190774