# GulpTemplate **Repository Path**: cyss/GulpTemplate ## Basic Information - **Project Name**: GulpTemplate - **Description**: gulp Demo 模板 - **Primary Language**: JavaScript - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2016-12-19 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #GulpTemplate ##安装 请先安装Gulp全局环境。然后cd到该项目目录下运行 1. 先下载nodejs并安装(https://nodejs.org/en/) 2. 运行npm install -g gulp `` $cd ~/GulpTemplate $npm install --save-dev `` ##命令预览 - gulp 构建项目到dist - gulp browser-sync 开启实时预览(测试地址:http://localhost:3000/src/html/district/district.html) - gulp build:src 构建src项目目录 - gulp clean:dist 清理dist ##GulpTemplate Link 1. nodejs 2. npm 3. gulp 4. bower 5. 关于目录结构 ##注意 1. ⚠️往src添加html请使用模板htmlTemplate.html 2. ⚠️往src添加html、less、images文件后需运行gulp build:src构建 3. ⚠️请勿自行修改src的目录结构 chrome跨域访问插件(翻墙后安装)或直接使用1.0.3_0.crx https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi 参考文章 http://www.cnblogs.com/mouse_in_beijing/p/5541806.html