GithubHelp home page GithubHelp logo

gulpfile's Introduction

一个简单的gulp项目

集合了一些常用插件,加速前端开发。

功能

  1. 编译src>styles目录下的less文件,对一些CSS3代码加前缀,压缩,放入dist>css目录。
  2. 合并src>scripts目录下的每个js文件,并压缩,放入dist>js目录。
  3. 压缩src目录下的html文件,放入dist目录。
  4. 复制src>images下的图片文件,放入dist>img目录。
  5. 使用browser-sync插件,监控src目录下的文件变化。

使用方法

git clone https://github.com/amenzai/gulpfile.git
cd gulpfile
npm install
gulp serve

运行gulp serve命令后

  1. 在本目录生成一个dist文件夹(里面就是生成的网站)
  2. 监听src目录下所有文件的变更
  3. 在2016端口启动服务器,浏览器自动打开生成的网站

gulpfile's People

Contributors

amenzai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.