基于webpack前端模块化开发多页面脚手架

github地址 https://github.com/faimaklg/k-pages-webpack.git

下载

git clone https://github.com/faimaklg/k-pages-webpack.git

安装

npm i

开发模式

npm run dev

打包

npm run build

目录结构

项目文件统一放置在src目录下。

common放置公用资源。

components放置页面资源。

part下放置模块文件

helper为定义handlebars模板扩展方法。

posted @ 2017-10-09 15:15  faima  阅读(253)  评论(0)    收藏  举报