I was trying to replicate the Space Invaders Project of Melon.js. It uses Grunt and the initial configuration is clearing the file that contains the player images.
resources: {
dist: {
options: {
dest: 'build/js/resources.js',
varname: 'game.resources',
},
files: [{
src: ['data/bgm/**/*', 'data/sfx/**/*'],
type: 'audio'
},{
src: ['data/img/**/*.png'],
type: 'image'
},{
src: ['data/img/**/*.json'],
type: 'json'
},{
src: ['data/map/**/*.tmx', 'data/map/**/*.json'],
type: 'tmx'
},{
src: ['data/map/**/*.tsx'],
type: 'tsx'
}]
}
},
How can I update the config so it doesn't clear the file /build/js/resources.js?
Cheers