随笔分类 -  打包工具

摘要:webpack例子:https://github.com/Aquarius1993/webpackDemo 1. 需要全局和项目安装webpack和webpack-dev-server 2. 配置webpack.config.js 3. 运行项目 阅读全文
posted @ 2016-09-12 10:18 lhy031 阅读(5016) 评论(0) 推荐(0)
摘要:grunt例子:https://github.com/Aquarius1993/gruntDemo grunt 实时刷新1: 1.安装chrome浏览器插件:liveReload 2.npm install grunt-contrib-watch connect-livereload --save- 阅读全文
posted @ 2016-08-11 15:54 lhy031 阅读(510) 评论(0) 推荐(0)
摘要:gulp例子:https://github.com/Aquarius1993/gulpDemo 淘宝镜像:$ npm install -g cnpm --registry=https://registry.npm.taobao.org 一 入门: npm: node package manager( 阅读全文
posted @ 2016-08-05 15:51 lhy031 阅读(2020) 评论(0) 推荐(0)
摘要:grunt例子:https://github.com/Aquarius1993/gruntDemo 1、前提是已经有npm(可以通过安装nodejs实现) 2、 npm update -g npm 更新npm 3、安装 CLI npm isntall -g grunt-cli 4、 编写GRuntf 阅读全文
posted @ 2016-08-05 15:34 lhy031 阅读(266) 评论(0) 推荐(0)
摘要:webpack例子:https://github.com/Aquarius1993/webpackDemo 安装: webpack , webpack-dev-server 1.如何在使用webpack-dev-server的过程中,同时生成文件? 暂时没有解决,说是解决不了 2.怎样实现baseU 阅读全文
posted @ 2016-08-05 15:31 lhy031 阅读(1979) 评论(0) 推荐(0)