UNPKG

react-webpack-flux-babel-natliu

Version:

react 全栈

30 lines (25 loc) 807 B
module.exports = function (grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), jshint:{ src: 'src/*.js' }, uglify: { options: { mangle: true, banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' }, build: { src: 'src/*.js', dest: 'build/<%= pkg.name %>.min.js' } } }); // 加载包含 "jshint" 任务的插件 grunt.loadNpmTasks('grunt-contrib-jshint'); // 加载包含 "uglify" 任务的插件。 grunt.loadNpmTasks('grunt-contrib-uglify'); // 默认被执行的任务列表。 grunt.registerTask('default', ['jshint', 'uglify']); };