grunt第一次配置

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了grunt第一次配置相关的知识,希望对你有一定的参考价值。

package.json

 

 1 {
 2   "name": "fortest",
 3   "title": "ForTest1",
 4   "description": "Library for composing asynchronous and event-based operations in javascript",
 5   "repository": {
 6     "type": "git",
 7     "url": "https://git.coding.net/konghao/fortest.git"
 8   },
 9   "license": "Apache-2.0",
10   "devDependencies": {
11     "grunt": "*",
12     "grunt-contrib-concat": "^1.0.1",
13     "grunt-contrib-jshint": "^1.0.0",
14     "grunt-contrib-uglify": "*",
15     "grunt-contrib-watch": "^1.0.0"
16   }
17 }

 

gruntfile.js

 

 1 {
 2   "name": "fortest",
 3   "title": "ForTest1",
 4   "description": "Library for composing asynchronous and event-based operations in JavaScript",
 5   "repository": {
 6     "type": "git",
 7     "url": "https://git.coding.net/konghao/fortest.git"
 8   },
 9   "license": "Apache-2.0",
10   "devDependencies": {
11     "grunt": "*",
12     "grunt-contrib-concat": "^1.0.1",
13     "grunt-contrib-jshint": "^1.0.0",
14     "grunt-contrib-uglify": "*",
15     "grunt-contrib-watch": "^1.0.0"
16   }
17 }

 

以上是关于grunt第一次配置的主要内容,如果未能解决你的问题,请参考以下文章

Grunt-Grunt使用

命令'grunt'不会生成文件夹:dist

grunt 怎么安装已经配置好的packet.json

grunt两小时入门

grunt 合并压缩js和css文件

grunt-js文件压缩