Update Gruntfile.js
This commit is contained in:
parent
cd1dba8b1b
commit
7fb6ac4cf3
12
Gruntfile.js
12
Gruntfile.js
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue