2021-03-23 10:58:45 +11:00
|
|
|
module.exports = function(grunt){
|
|
|
|
|
|
|
|
// Configuration
|
|
|
|
grunt.initConfig({
|
|
|
|
// pass in options to plugin, references to file, etc.
|
|
|
|
|
2021-03-23 11:28:46 +11:00
|
|
|
concat: {
|
|
|
|
js: {
|
|
|
|
src: ['js/*.js'],
|
|
|
|
dest: 'build/scripts.js'
|
|
|
|
},
|
|
|
|
css: {
|
|
|
|
src: ['css/*.css'],
|
|
|
|
dest: 'build/styles.js'
|
|
|
|
}
|
|
|
|
}
|
2021-03-23 10:58:45 +11:00
|
|
|
});
|
|
|
|
|
|
|
|
// Load plugins
|
2021-03-23 11:28:46 +11:00
|
|
|
grunt.loadNpmTasks('grunt-contrib-concat')
|
|
|
|
require('load-grunt-tasks')(grunt);
|
2021-03-23 10:58:45 +11:00
|
|
|
|
|
|
|
// Register tasks
|
2021-03-23 11:28:46 +11:00
|
|
|
grunt.registerTask('concat-js', ['concat:js']);
|
|
|
|
grunt.registerTask('concat-css', ['concat:css']);
|
2021-03-23 10:58:45 +11:00
|
|
|
|
|
|
|
}
|