Home page and news page are finished
This commit is contained in:
37
Gruntfile.js
vendored
Normal file
37
Gruntfile.js
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
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: {
|
||||
src: 'public/js/functions.js',
|
||||
dest: 'public/js/functions.min.js'
|
||||
}
|
||||
},
|
||||
concat: {
|
||||
js: {
|
||||
src: ['resources/assets/js/functions/*.js'],
|
||||
dest: 'public/js/functions.js'
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
scripts: {
|
||||
files: 'resources/assets/js/functions/*.js',
|
||||
tasks: ['concat', 'uglify'],
|
||||
options: {
|
||||
interrupt: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
// Load the plugin that provides the "uglify" task.
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
grunt.loadNpmTasks('grunt-contrib-concat');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user