2 Star 1 Fork 1

艾尔云/color-thief

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Gruntfile.js 1001 Bytes
一键复制 编辑 原始数据 按行查看 历史
Bruno Mota 提交于 2016-05-22 13:19 . export color thief module
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
files: ['src/color-thief.js']
},
uglify: {
options: {
preserveComments: 'some',
sourceMap: false
},
dist: {
files: {
'dist/color-thief.min.js': ['src/color-thief.js']
}
}
},
watch: {
sass: {
files: ['examples/sass/*.sass'],
tasks: ['compass'],
options: {
livereload: true,
spawn: false
},
},
test: {
files: ['src/color-thief.js'],
tasks: ['jshint']
}
}
});
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-ftp-deploy');
grunt.registerTask('default', ['connect', 'watch']);
grunt.registerTask('build', ['jshint', 'uglify']);
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/aieryun/color-thief.git
git@gitee.com:aieryun/color-thief.git
aieryun
color-thief
color-thief
master

搜索帮助