supermedium / aframe-super-hot-loader

🔥 Webpack loader for hot reloading A-Frame components and shaders.
https://youtu.be/uh_RQay3x80
MIT License
87 stars 8 forks source link

How to use the loader #5

Open mi-skam opened 4 years ago

mi-skam commented 4 years ago

Hi, I have trouble understanding the use of the loader. I am quite new to webpack and thus unsure how to combine "aframe-super-hot-html-loader" with the rest of my mi-skam/aframe-template/webpack.common.js and mi-skam/aframe-template/webpack.dev.js.

I simply start with webpack --config webpack.prod.js which merges webpack.common.js and the goal of my webpack config is to create a dist folder with assets and a matching index.html, unfortunately as of now I don't know how to bundle aframe without getting a "missing window object" and worse than that. I get some JS Code by the hot loader inserted into the html, like here https://pastebin.com/ZX52L9r6