mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
35 lines
No EOL
704 B
JavaScript
35 lines
No EOL
704 B
JavaScript
module.exports = function(grunt) {
|
|
|
|
grunt.initConfig({
|
|
cssmin: {
|
|
dist: {
|
|
options: {
|
|
report: 'gzip'
|
|
},
|
|
files: {
|
|
"dist/spritesheets.css": ["css/*.css"],
|
|
}
|
|
}
|
|
},
|
|
|
|
browserify: {
|
|
dist: {
|
|
src: ["script/index.js"],
|
|
dest: "dist/habitrpg-shared.js"
|
|
},
|
|
options: {
|
|
transform: ['coffeeify'],
|
|
//debug: true Huge data uri source map (400kb!)
|
|
}
|
|
}
|
|
|
|
});
|
|
|
|
// Load the plugin that provides the "uglify" task.
|
|
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
|
grunt.loadNpmTasks('grunt-browserify');
|
|
|
|
// Default task(s).
|
|
grunt.registerTask('default', ['cssmin', 'browserify']);
|
|
|
|
}; |