No description, website, or topics provided.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tasks
.gitignore
.jshintrc
Gruntfile.js
LICENSE-MIT
README.md
package.json

README.md

grunt-hmb

Build hmb inside a Grunt task

Getting Started

Install the hmb with: npm install -g hmb

Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-hmb

Then add this line to your project's grunt.js gruntfile:

grunt.loadNpmTasks('grunt-hmb');

Usage

hmb: {
  compile: {
    options: {
      src: './site/',
      dist: '../dist',
      pack: true,	//是否按照将js,css的uri打包
      command: 'm,D,l,o,p' //m: md5, D: domains, l: lint, o: optimize, p: pack
    }
  }
},

//添加模块的相关配置
hma: {
  options: {
	src: './site/',
    dirs: ['/tpl', '/page', '/static', '/static/image'] //需要生成的目录,默认为该数组
  }
}

License

Copyright (c) 2013 leoxie
Licensed under the MIT license.