hoppa

2019-10-11 admin

hoppa是什么

什么是hoppa,a simple way to deliver your less, css and javascripts

hoppa使用教程帮助文档

Hoppa

Hoppa is a javascript compressor and less compiler for web projects.

Installation

$ sudo npm install hoppa -g

Configure

Add a Hoppa project file. Hoppa looks for hoppa.json or a given json path at launch using -p (see Launch). Use config to define wether Hoppa should compress javascript and/or compile less files when running Hoppa without arguments (-a, -j, -l).

{

  "config": {
    "compress": true
    ,"compile": true
  }

  ,"js": {
    "./js/scripts.min.js": ["./js/*.js"]
  }

  ,"less": {
    "./css/bootstrap.min.css": ["./less/bootstrap/bootstrap.less"]
  }

}

Launch

Go to your project directory and run

$ hoppa -a

To start in watch mode use -w

$ hoppa -a -w

To start with javascript compression -j

$ hoppa -j

To start with less compilation -l

$ hoppa -l

To start with less compilation and javascript compression -a

$ hoppa -a

To start with a custom project json use -p

$ hoppa -a -w -p ./my_project.json

To start with terminal notifications use -n (see Notifications)

$ hoppa -a -w -n -p ./my_project.json

For help use --help

$ hoppa --help

Notifications

####Windows Install Growl: http://growl.info/

####OSX Install terminal-notifier

$ sudo gem install terminal-notifier
你可能感兴趣的文章:

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-77111.html

文章标题:hoppa

回到顶部