1.0.5 • Published 3 years ago

create-webpack-threejs v1.0.5

Weekly downloads
3
License
ISC
Repository
github
Last release
3 years ago

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 -g

and then

npx create-webpack-threejs [folderName]
cd [folderName]
yarn install
yarn start

start example

yarn start

Content

  • 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.publicPath configuration in webpack.config.prod.js to 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)

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

4 years ago

1.0.0

4 years ago