Skip to content

brandflugan/three-js-webpack-boilerplate

Repository files navigation

Three.js logo Webpack logo

Three.js Webpack Boilerplate

A Webpack 5 & Three.js boilerplate together with Babel, Sass, ESLint, Hot Module Replacement and Stylelint, optimized for development/production.


Installation

git clone git@github.com:brandflugan/three-js-webpack-boilerplate
npm i

Usage

Development server

npm start

You can view the development server at localhost:8080.

Production build

npm run build

Note: Install http-server globally to deploy a simple server.

npm i -g http-server

You can view the deploy by creating a server in dist.

cd dist && http-server

Fix lint issues

Javascript

npm run fix-js

SCSS/CSS

npm run fix-styling

Features

Dependencies

Three.js

Webpack

Babel

Loaders

Plugins

Author & Contributors

License

This project is open source and available under the MIT License.