You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
739 B
JavaScript

module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sed: {
relativePaths: {
path: './build/index.html',
pattern: '="/',
replacement: '="./'
}
},
compress: {
main: {
createEmptyArchive: false,
options: {
archive: 'DrowningAmongStars_<%= pkg.version %>.zip'
},
files: [{
expand: true,
cwd: './build/',
src: [
'./index.html',
'./static/**'
],
dest: '/'
}]
}
},
})
grunt.loadNpmTasks('grunt-sed')
grunt.loadNpmTasks('grunt-contrib-compress')
grunt.registerTask('default', ['sed', 'compress'])
}