Implemented embed of analytics during build

This commit is contained in:
BorisLevitskiy
2015-04-09 18:36:17 +03:00
parent ca41485238
commit 2c184db805
3 changed files with 24 additions and 6 deletions

View File

@@ -39,12 +39,20 @@ module.exports = function(grunt) {
}
},
copy: {
files: {
src: 'src/*.*',
dest: 'build/',
flatten: true,
expand: true
main: {
files: [{
src: 'src/*.*',
dest: 'build/',
flatten: true,
expand: true
}, {
src: 'src/js/analytics.js',
dest:'build/js/',
flatten: true,
expand: true
}]
}
},
processhtml: {
build: {
@@ -53,7 +61,7 @@ module.exports = function(grunt) {
}
}
},
clean: ['/build']
clean: ['build/**']
});
// Load the plugin that provides the "uglify" task.