An example how to use OpenSheetMusicDisplay within a Webpack build. Uses TypeScript.
$ npm install
$ npm start
Now you can browse to http://127.0.0.1:8080 and see your running instance of OpenSheetMusicDisplay.
If you decided to play around and make changes, you can trigger a rebuild anytime using
$ npm run webpack
You may have to do a hard refresh in the browser (Ctrl+F5), Chrome sometimes caches the old page and compiled index.ts.
index.ts
- the application's entry point, contains all sourceswebpack.config.js
- Webpack configurationtsconfig.json
- TypeScript compiler configurationResources/
- Resources folder for project dataMuzioClementi_SonatinaOpus36No1_Part1.xml
- the MusicXML file to be displayedfavicon.ico
- OSMD icon for the tab bar
dist/
- directory containing all build artifacts, will be served from a local http server onnpm start