create-webpack-threejs
v1.0.5
Published
this is threejs scaffold in webpack and es6
Readme
threejs scaffold
Description
This scaffold only has simplest function to use threejs which is the cube example for webpack
Install
To install this, you can follow the codes. 'folderName' can be any folder name
You need install yarn before using
npm install yarn -gand then
npx create-webpack-threejs [folderName]
cd [folderName]
yarn install
yarn startstart example
yarn startContent
dev config
webpack.config.dev.js- babel
- css module
- html template
- devServer
prod config
webpack.config.prod.js- css extract
- hash8 filename
- copy public
- split chunks
You can modify the
output.publicPathconfiguration inwebpack.config.prod.jsto set the url prefix for static resources.
THANKS
The npmjs manage for installing for npx almost from my senior IanYet
说明
- 本脚手架仅为最简单的 cube 样例,可供 webpack 使用
安装
必须已安装 node.js
并已安装 yarn
如未安装 yarn 可通过
npm install yarn -g若已安装 yarn,可直接在根目录运行
npx create-webpack-threejs [folderName]
cd [folderName]
yarn install启动样例
运行
yarn start即可
感谢
上传至 npmjs 的方法是来源于偶的同事,感谢他(IanYet)
