1 Star 0 Fork 7

blake2002 / JSLite

forked from 小弟调调 / JSLite 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Gruntfile.js 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
小弟调调 提交于 2015-03-23 03:01 . updata package.json
// 包装函数
module.exports = function(grunt) {
// 任务配置,所有插件的配置信息
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// uglify插件的配置信息
uglify: {
options: {
banner: '/*! http://JSLite.io - ' + '<%= grunt.template.today("yyyy-mm-dd") %> */'
// beautify: true,
// mangle: false, //不混淆变量名
// compress:true,//打开或关闭使用默认选项源压缩。
},
app_task: {
files: {
'build/JSLite.min.js': ['src/ie.js', 'src/JSLite.js']
}
}
},
// watch插件的配置信息
watch: {
another: {
files: ['src/*.js','build/*.js'],
tasks: ['uglify'],
options: {
// Start another live reload server on port 1337
livereload: 1337
}
}
}
});
// 告诉grunt我们将使用插件
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
// 告诉grunt当我们在终端中输入grunt时需要做些什么
grunt.registerTask('default', ['uglify','watch']);
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/blake2002/JSLite.git
git@gitee.com:blake2002/JSLite.git
blake2002
JSLite
JSLite
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891