大漠新布局主要用來代替 rem,文章地址為:http://www.w3cplus.com/css/vw-for-layout.html
可以使用 Pug(Jade) + Stylus + ES6 + Webpack dev server 寫網(wǎng)頁,非常方便
支持功能有
Support browserSync
Postcss plugin SVG, VW, Aspect-Ratio out of box
Support Pug
Support Stylus
Support ES6
前置依賴2個工具
yeoman和yarn,沒裝的分別安裝一下
yeoman
$ npm install -g yo
yarn
https://yarnpkg.com/en/docs/install#windows-tab
安裝使用方便,直接 npm 安裝
npm install -g generator-webpack-humble
然后就可以開發(fā)和打包啦
$ npm run dev? #Launches the server
$ npm run build? #Built the files
github 地址為:https://github.com/dxcqcv/generator-webpack-humble
覺得好用記得點 star,有問題直接 issues 或 pull request