This is the demo repo for the CSS Tricks article.
Download the repo and run:
npm install
npm run dev
To test Hot Module Reloading switch to the hmr
branch and run npm install
again.
Demo is set up with Vue. To see it in action run npm run dev
, open the given localhost address and change the message in site/js/App.vue
.
The new message will be hot reloaded - no whole window refresh.
export default {
data() {
return {
msg: 'Hello World!' // <- change the string
}
}
}