【文件属性】:
文件名称:three-js-webpack-boilerplate:Webpack 4和Three.js样板
文件大小:612KB
文件格式:ZIP
更新时间:2021-05-06 21:07:28
sass babel threejs webpack eslint
Three.js Webpack样板
Webpack 4和Three.js样板以及Babel,Sass,ESLint,热模块更换和Stylelint,已针对开发/生产进行了优化。
安装
git clone git@github.com:brandflugan/three-js-webpack-boilerplate
npm i
用法
开发服务器
npm start
您可以在localhost:8080查看开发服务器。
生产建立
npm run build
注意:全局安装以部署简单服务器。
npm i -g http-server
您可以通过在dist创建服务器来查看部署。
cd dist && http-server
修复皮棉问题
Java脚本
npm run fix-js
SCSS / CSS
npm run fix-styling
特征
CSS
ESLint
Style
【文件预览】:
three-js-webpack-boilerplate-master
----.eslintrc(177B)
----postcss.config.js(149B)
----public()
--------favicon.png(31KB)
----.stylelintrc(97B)
----webpack.config.js(3KB)
----src()
--------models()
--------template.html(388B)
--------styles()
--------images()
--------js()
--------fonts()
--------index.js(3KB)
----LICENSE(1KB)
----.prettierrc(87B)
----README.md(4KB)
----.npmrc(50B)
----.gitignore(86B)
----package-lock.json(520KB)
----package.json(2KB)