• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

scotch-io/gulp-and-less-starter-kit: Starter kit to use Gulp with Less. Features ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

scotch-io/gulp-and-less-starter-kit

开源软件地址(OpenSource Url):

https://github.com/scotch-io/gulp-and-less-starter-kit

开源编程语言(OpenSource Language):

HTML 62.9%

开源软件介绍(OpenSource Introduction):

Starter kit to use Gulp with Less.

==================================== A super clean and easy to use starter kit for using Gulp and Less. This should help you repurpose Gulp and Less for your own projects.

Features

LESS / CSS Stuff

  • Watches for Less changes on save
  • Checks for Less errors and outputs them without you having to rerun Gulp
  • Autoprefixes for legacy browsers
  • Combines all CSS into one big and sexy minified file
  • Includes Less Bootstrap

Javascript Stuff

  • Automatically compiles all jQuery libraries into one big file JS file
  • Lints custom scripts for errors
  • Combines all custom scripts into one file

How To Use

$ git clone [email protected]:scotch-io/gulp-and-less-starter-kit.git
$ cd gulp-and-less-starter-kit
$ npm install

After, run

$ gulp

Or

$ gulp server

...if you need a local server. Folder build serving at http://localhost:8888

Should use Livereload extension. Or inject <script src="//localhost:35729/livereload.js"></script> into your page.

When you change a LESS(or JS) file, the page will reload.

Updates

If this isn't working, it's probably because you need to update. Just run npm update --save-dev

If no command gulp found?, you need to install it globally npm install -g gulp or run npm run gulp

Still broken or not working?

Try this:

sudo npm cache clean
npm install --save-dev
npm update --save-dev
gulp

Quick Tips

  • Any changes in assets/less/* will trigger the Less to compile on save
  • All files in assets/js/libs/* will be compressed to build/jquery.plugins.min.js
  • All files in assets/js/* (except for libs) will be compressed to build/scripts.min.js

Special Thanks

To Kenny Song for his contributions and https://github.com/baivong




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap