Skip to content
多页面HTML脚手架
JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
plop-templates
src
.babelrc
.eslintignore
.eslintrc.json
.gitignore
README.md
package-lock.json
package.json
plopfile.js
postcss.config.js

README.md

mpa-boilerplate

多页面 HTML 脚手架

Webpack

npm install webpack webpack-cli webpack-dev-server html-webpack-plugin html-loader css-loader style-loader less less-loader file-loader url-loader --save-dev

使用了 less 作为 css 预编译引擎,方便安装

babel

npm install --save-dev @babel/core @babel/cli babel-loader @babel/preset-env

Eslint

npm install -g eslint 全局安装,通过在控制台eslint --init初始化安装

npm install --save-dev eslint-loader

Plugin

npm install --save-dev clean-webpack-plugin mini-css-extract-plugin webpack-md5-hash

npm install postcss-loader autoprefixer --save-dev

MPA

npm install --save-dev glob npm i -D cross-env

You can’t perform that action at this time.