supermedium / aframe-super-hot-loader Goto Github PK
View Code? Open in Web Editor NEW๐ฅ Webpack loader for hot reloading A-Frame components and shaders.
Home Page: https://youtu.be/uh_RQay3x80
License: MIT License
๐ฅ Webpack loader for hot reloading A-Frame components and shaders.
Home Page: https://youtu.be/uh_RQay3x80
License: MIT License
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
Hi there, I'm getting the following issue when I try to install:
ERROR in ./src/scene.html 1:14
Module parse failed: Bad escape sequence in untagged template literal (1:14)
File was processed with these loaders:
* ./node_modules/aframe-super-hot-html-loader/index.js
* ./node_modules/super-nunjucks-loader/index.js
* ./node_modules/html-require-loader/index.js
You may need an additional loader to handle the result of these loaders.
> const html = `<a-scene environment="preset: forest; seed: 123; shadowSize: 5">
| <!-- <require path="C:\directory-to\aframe-super-hot-loader\example\src\templates\assets.html"> -->
| <a-assets>
@ ./src/index.js 10:0-23
Here are the steps I followed:
$ git clone https://github.com/supermedium/aframe-super-hot-loader
$ cd aframe-super-hot-loader/example
$ npm install
$ npm run start
I'm pretty new to webpack so I'm not sure if I'm missing a step.
Thanks!
I get this error on yarn build
for the example project. Did you experience something like this?
ERROR in unknown: stmts.entries is not a function
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
$: grep -r stmts.entries .
./node_modules/babel-helper-evaluate-path/lib/index.js: for (var _iterator = stmts.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.