Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Static Website Boilerplate

Website bolierplate for HTML/CSS/JS/WebFont/CSSSprite.

Node.js version support NPM version MIT licensed

Table of Contents

Requirements

Requires the following to run:

  • node 12.14+
  • npm 6.13+

I checked the operation with Windows 10 / MacOS 10.12.

Get Started

1.Clone the Git repository

git clone https://github.com/okamoai/static-website-boilerplate.git

2.Move to project directory

cd static-website-boilerplate

3.Install Node.js package

npm install

4.Start Development (run build and local server)

npm start

Generators

Build source files

Type Generator Path
HTML Pug src/pug
CSS Stylus, PostCSS src/stylus
JavaScript Webpack, Babel src/js
Image imagemin src/img
WebFont postcss-webfont(forked) src/font
Sprite postcss-lazysprite src/sprite
Other static files cpx src/static

Usage

  • Development is npm scripts npm start. Run clean, build, watching and local Server.
  • Production build is npm scripts npm run build production. Run clean and minify build.

Setting

File use type use package and options
.browserslistrc CSS, JavaScript postcss-preset-env, @babel/preset-env
postcss.config.js CSS, WebFont, Sprite cssnano, postcss-webfont, postcss-lazysprite
build/config.js JavaScript, Image Webpack, imagemin plugins (gifsicle, pngquant, jpegtran, svgo)

License

MIT © okamoai

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published