scratch – Blame information for rev 79
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
79 | office | 1 | module.exports = function(grunt) { |
2 | 'use strict'; |
||
3 | |||
4 | grunt.initConfig({ |
||
5 | clean: ['dist'], |
||
6 | uglify: { |
||
7 | options: { |
||
8 | preserveComments: 'some', |
||
9 | sourceMap: true |
||
10 | }, |
||
11 | build: { |
||
12 | expand: true, |
||
13 | cwd: 'js', |
||
14 | src: ['**/*.js', ['!**/*.min.js']], |
||
15 | dest: 'js', |
||
16 | ext: '.min.js', |
||
17 | } |
||
18 | }, |
||
19 | cssmin: { |
||
20 | options: { |
||
21 | keepBreaks: true |
||
22 | }, |
||
23 | build: { |
||
24 | expand: true, |
||
25 | cwd: 'css', |
||
26 | src: ['**/*.css', ['!**/*.min.css']], |
||
27 | dest: 'css', |
||
28 | ext: '.min.css', |
||
29 | } |
||
30 | } |
||
31 | }); |
||
32 | grunt.loadNpmTasks('grunt-contrib-clean'); |
||
33 | grunt.loadNpmTasks('grunt-contrib-uglify'); |
||
34 | grunt.loadNpmTasks('grunt-contrib-cssmin'); |
||
35 | grunt.registerTask('default', ['clean', 'uglify', 'cssmin']); |
||
36 | |||
37 | }; |