Update Gruntfile.js

This commit is contained in:
Mike Francis 2014-12-04 10:16:52 +00:00
parent cd1dba8b1b
commit 7fb6ac4cf3
1 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,11 @@
module.exports = function(grunt) { module.exports = function(grunt) {
// Add your script files here in order of precedence
var scripts = [
'js/script.js'
];
grunt.initConfig({ grunt.initConfig({
pkg: grunt.file.readJSON('package.json'), pkg: grunt.file.readJSON('package.json'),
autoprefixer: { autoprefixer: {
@ -54,9 +60,7 @@ module.exports = function(grunt) {
}, },
my_target: { my_target: {
files: { files: {
'js/script.min.js': [ 'js/script.min.js': scripts
'js/script.js'
]
} }
} }
}, },
@ -69,7 +73,7 @@ module.exports = function(grunt) {
} }
}, },
js: { js: {
files: ['js/**/*.js'], files: scripts,
tasks: ['uglify'], tasks: ['uglify'],
options: { options: {
livereload: true livereload: true