forked from live-composer/live-composer-page-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
49 lines (44 loc) · 1.29 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
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
compress: false,
manage: false,
},
js_builder_minify : {
src : 'js/builder/*.js',
dest : 'js/builder.all.min.js'
},
js_iframe_minify : {
src : 'js/builder.frontend/*.js',
dest : 'js/builder.frontend.all.min.js'
},
js_frontend_minify : {
src : 'js/frontend/*.js',
dest : 'js/frontend.all.min.js'
},
js_pluginoptions_minify : {
src : 'includes/plugin-options-framework/js/main.js',
dest : 'includes/plugin-options-framework/js/main.min.js'
},
js_postoptions_minify : {
src : 'includes/post-options-framework/js/main.js',
dest : 'includes/post-options-framework/js/main.min.js'
},
},
cssmin: {
target: {
files: {
'css/frontend.min.css': ['css/frontend/*.css'],
'css/builder.min.css': ['css/builder/*.css'],
'includes/plugin-options-framework/css/main.min.css': ['includes/plugin-options-framework/css/main.css'],
'includes/post-options-framework/css/main.min.css': ['includes/post-options-framework/css/main.css']
}
}
},
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.registerTask('default', ['uglify', 'cssmin']);
};