-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
59 lines (55 loc) · 2.28 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// uglify: {
// options: {
// banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
// },
// build: {
// }
// },
minifyHtml: {
options: {
cdata: true
},
dist: {
files: {
'dist/ack/index.html': 'src/ack/index.html',
'dist/app.css': 'src/app.css',
'dist/common/github.html': 'src/common/github.html',
'dist/common/navigation.html': 'src/common/navigation.html',
'dist/edi40/index.html': 'src/edi40/index.html',
'dist/edi40/2024/index.html': 'src/edi40/2024/index.html',
'dist/edi40-2023/index.html': 'src/edi40-2023/index.html',
'dist/graph/index.html': 'src/graph/index.html',
'dist/reddit/index.html': 'src/reddit/index.html',
'dist/index.html': 'src/index.html',
'dist/doc/index.html': 'src/doc/index.html',
'dist/research/index.html': 'src/research/index.html',
'dist/reset.css': 'src/reset.css'
}
}
},
// Configuration for copy tasks
copy: {
dist: {
files: [
{
expand: true, // Enable dynamic expansion
cwd: 'src/', // Src matches are relative to this path
src: ['**'], // Pattern to match all files and subfolders
dest: 'dist/', // Destination path prefix
dot: false // Include hidden files
}
]
}
}
});
// Load the plugin that provides the "uglify" task.
// grunt.loadNpmTasks('grunt-contrib-uglify-es');
// grunt.loadNpmTasks('grunt-minify-html');
grunt.loadNpmTasks('grunt-contrib-copy');
// Default task(s).
grunt.registerTask('default', ['copy']);
};