grunt-ng-constant
grunt-ng-constant copied to clipboard
Add useStrict option to configuration
Proposal:
ngconstant: {
options: {
useStrict: true // Uses "'use strict'\n\n" as default value. Can be replaced by any string.
}
}
All other definitions from template needs to be removed.
:+1: as I get
src/common/config.js
1 |"use strict";
^ Use the function form of "use strict".
3 | angular.module('rest_config', [])
^ 'angular' is not defined.
Which tool produces this error?
@mlegenhausen Running "jshint:src" (jshint) task
Do you use a custom template?
@mlegenhausen nope, just this:
options: {
space: ' ',
wrap: '"use strict";\n\n {%= __ngModule %}',
name: 'rest_config'
}
Why do you not remove the "use strict"
string from the wrap
option?