JS13K A-Frame Boilerplate
- You need node installed.
- Clone this repository
package.jsonwith your info
- Delete unneeded files and blocks
- Download node dependencies
Start development server
After installation you just need to run:
This will setup a server listening at
If everything went OK, you will see:
Access from another device
You can pass an argument to the development server specifying the interface to listen on.
npm start -- --host=0.0.0.0
This command will start the development server listening on all interfaces. Having a device on the same network you will be able to view the webpage at
http://[yourLocalIP]:8080 for example
Build for submission
This project provides a npm script for building your application
npm run build
This will generate two files index.html and build.zip both located in the dist/ folder. The zip file contains only the generated index.html. The output from the command also tells you how large is the generated zip file.
Where does my code go?
src/app/ directory. The entry point is the
main.js file. All your css should be located in the
src/styles directory. The entry point is
main.css. If you need to modify the html file, you can find the template used in
This project uses webpack for module bundling. This means that all the files that you want to use should be imported directly or indirectly by either
This project is licensed under the MIT License - see the LICENSE file for details
- This project is based on https://github.com/sz-piotr/js13k-webpack-starter by Piotr Szlachciak.