Skip to content

Frontend engineering solution based on webpack+gulp+koa.

License

Notifications You must be signed in to change notification settings

llcowry/webpack-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webpack-demo

基于 webpack+gulp+koa 搭建纯静态页面型前端工程解决方案实例

拷贝项目

$ git clone https://github.com/llcowry/webpack-demo.git

安装依赖模块

$ npm install -g gulp webpack
$ cd webpack-demo && npm install

本地开发环境

  • 启动本地开发服务器
$ npm run start-dev

编译

$ npm run build # or run `gulp default`

模拟生产环境

$ npm run start-release

部署&发布

纯静态页面型的应用,最简单的做法是直接把dist文件夹部署到指定机器即可

$ npm run deploy # or run `gulp deploy`

如果需要将生成的js、css、images等发布到cdn,修改下publicPath为目标cdn地址即可

License

MIT.

About

Frontend engineering solution based on webpack+gulp+koa.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published