Grunt task to strip or add BOM to files
npm install grunt-byte-order-mark --save-dev
grunt.loadNpmTasks('grunt-byte-order-mark');
bom: {
addBom: {
src: 'file-wihtout-bom.txt',
options: {
add: true
}
},
removeBom: {
src: 'file-wiht-bom.txt',
options: {
remove: true
}
}
}
Lets go dancing!
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.