Boolean value that determines if BUILD_INCLUDE replacement file is to be treated as a javascript string.
See Also: Options AsJsString
File level options will always take priority unless override is set to true
.
With the configuration below all inline BUILD_INCLUDE statments would have asJsString applied and each BUILD_INCLUE file would be split into lines that are 100 characters wide with extra line breaks removed using breakstring.
module.exports = function (grunt) {
grunt.initConfig({
build_include: {
default: {
options: {
asJsString: true,
breakstring: {
width: 100,
break: 'width',
eol: 'noLnBr'
}
override: true
},
src: './src/maint.ts',
dest: './scratch/ts/main.ts'
}
}
});
grunt.loadNpmTasks('grunt-build-include');
grunt.registerTask('default', ['build_include:default']);
};
See Also: Options AsJsString
Generated using TypeDoc