Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,12 @@ Default: `false`

Whether to copy or set the existing file permissions. Set to `true` to copy the existing file permissions. Or set to the mode, i.e.: `0644`, that copied files will be set to.

#### bom
Type: `Boolean`
Default: `false`

Insert BOM into the front of file.

### Built-in Replacements

Few matching rules are provided by default and can be used anytime (these will be affected by the `options` given):
Expand Down
6 changes: 6 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ Default: `false`

Whether to copy or set the existing file permissions. Set to `true` to copy the existing file permissions. Or set to the mode, i.e.: `0644`, that copied files will be set to.

#### bom
Type: `Boolean`
Default: `false`

Insert BOM into the front of file.

### Built-in Replacements

Few matching rules are provided by default and can be used anytime (these will be affected by the `options` given):
Expand Down
3 changes: 3 additions & 0 deletions tasks/replace.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ module.exports = function (grunt) {
grunt.log.writeln('Replace ' + chalk.cyan(source) + ' → ' +
chalk.green(target));
}
if (options.bom) {
contents = '\uFEFF' + contents;
}
return result;
},
noProcess: options.noProcess || options.processContentExclude
Expand Down