webamp/production/Gruntfile.js
2014-12-20 22:33:18 -08:00

37 lines
978 B
JavaScript

module.exports = function(grunt) {
// 1. All configuration goes here
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
htmlrefs: {
dist: {
src: '../index.html',
dest: '../index.html',
options: {
includes: {
analytics: './analytics.js'
}
}
}
},
inline: {
dist: {
options:{
tag: 'inline', // Inline all the things
uglify: true,
cssmin: true
},
src: [
//'../css/winamp.css', // Inlines the cursor images
'../index.html'
]
}
}
});
grunt.loadNpmTasks('grunt-inline');
grunt.loadNpmTasks('grunt-htmlrefs');
grunt.registerTask('default', ['htmlrefs', 'inline']);
};