Skip to content

nestarz/es6-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ES6 Template

  • ES6 with Module, Import Maps, JSON Imports and CSSStyleSheet, ...
  • Zero Build Step
  • Package Management using Snowpack
  • (Optional) Rust to WASM Build Integration

Run

python -m http.server 8080 --bind 127.0.0.1

Manage Dependencies using Snowpack

yarn
yarn add three
# You have to update package.json and add three to webDependencies manually, then
node_modules/.bin/snowpack --optimize --clean
import * as THREE from "three"

WASM Build

cd src/wasm/

wasm-pack build --target browser