An ES20XX starter with common frontend tasks using Webpack 5 as module bundler and npm scripts as task runner.
If you serve your files over HTTPS with HTTP/2, use compression (gzip, brotli...) for text-based resources, and respect accessibility rules, your lighthouse score will be 100%.
Node ">=15.0.0"
(use brew or install it from here)
brew install node
OSX & Linux:
git clone --depth 1 https://github.com/dmnsgn/frontend-boilerplate.git && cd frontend-boilerplate && rm -rf .git && git init
Windows:
git clone --depth 1 https://github.com/dmnsgn/frontend-boilerplate.git && cd frontend-boilerplate && rd /s /q .git && git init
npm install
Open config/config.js
:
Key | Description | Type |
---|---|---|
PATHS | map of paths to the different folders needed by webpack and npm scripts |
Map |
BROWSERS | the browsers targeted for babel-preset-env and browserslist (see full list here) |
Array |
Open package.json
:
Key | Description | Type |
---|---|---|
config.title | title used for metas and favicons | String |
config.url | absolute url used for metas, robotstxt, sitemap and banner | String |
config.lang | language for index.html and favicons | String |
config.description | title used for metas, favicons and banner | String |
config.imageWidth | width of the share image (default ${PACKAGE.config.url}/share.jpg ) |
String |
config.imageHeight | height of the share image (default ${PACKAGE.config.url}/share.jpg ) |
String |
config.type | Open Graph type | String |
config.card | Twitter card | String |
config.copyright | license acronym used for banner | String |
config.handle | twitter handle for metas | String |
config.analyticsUA | google analytics UA | String |
config.pages | list of pages with id and optional name, description, EJS template for HtmlWebpackPlugin | Array |
author.name | author name used for favicons | String |
author.url | author url used for favicons | String |
npm run dev
// or npm start
npm run prod
// or npm run build
<picture>
wrapping using posthtml, optimised with image-webpack-loadernpm run clean
: remove all the files from the dist
directorynpm run favicons
: generate favicons files and /src/templates/_favicons.ejs
npm run robotstxt
: generate robots.txt filenpm run sitemap
: generate sitemap.xml fileMIT
Ilios Frontend Web interface for accessing and managing Ilios Platform data. Open Source Heroes Every day these for-profit companies make developing Ilios possible. Without the free tier of service th
This page describes how to make changes to Flarum's user interface. How to add buttons, marquees, and blinking text. Remember, Flarum's frontend is a single-page JavaScript application. There's no Twi
基于 jQuery + bootstrap 的前端框架。 技术栈 express jade bootstrap bootstraptable jquery gulp nginx 前后端分离实践 前端:moa-frontend public下面的采用nginx做反向代理 其他的采用express+jade精简代码(ajax与后端交互) 后端:moa-api Install npm install n
puewue-frontend 是一个简单的前端应用用来显示 Facebook 数据中心电源消耗和其他信息的工具。与其配合的后端工具请看 puewue-backend
TipXMR - The Livestream Tipping Service for OBS TipXMR is a web based application that let’s you accept donations in your livestream. �� Our CCS Funding Campaign The Goal We want to provide an open so
FRONTEND-TUTORIAL 一个后端程序员的前端技术总结。 �� 项目同步维护:Github | Gitee �� 电子书阅读:Github Pages | Gitee Pages �� 内容 Html, Css, JavaScript 前端基础 - Html, Css, JavaScript Html 入门 Css 入门 JavaScript 入门 Nodejs Node.js 入门 N