-
Notifications
You must be signed in to change notification settings - Fork 4
Vue player dev notes
gammaw edited this page Jan 5, 2020
·
4 revisions
Our player is implemented in Vue, based on Azuracast's public player.
- Go to
./wp/wp-content/themes/lahma_maker/assets/playerfiles/
. - Run
npm install
. This will locally install the build dependencies into anode_modules
folder -> add to gitignore list. - Run
npx webpack radio_player.vue
. This will build the js file.
Prerequisites: Node.js needs to be installed on your machine.
See more here: https://github.com/mmmnmnm/lahmacun/issues/73
Debugging
This is how you can monitor Vue values in your browser:
- Install browser extension, e.g., this for Chrome.
- Enable debugging by copying this to the start of the
radio_player.js
file:Vue.config.devtools = true;
For more advanced code debugging check this (we haven't tried it).