0.4.2 • Published 10 years ago

grunt-hmb v0.4.2

Weekly downloads
1
License
-
Repository
github
Last release
10 years ago

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.

0.4.2

10 years ago

0.4.1

10 years ago

0.4.0

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago