mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Add csp Content Security Policy build.
Former-commit-id: f922046de5150c098eb7f6d3b6901552117631e7
This commit is contained in:
6
build.js
6
build.js
@@ -14,11 +14,14 @@
|
|||||||
/** Flag used to specify a Backbone build */
|
/** Flag used to specify a Backbone build */
|
||||||
var isBackbone = process.argv.indexOf('backbone') > -1;
|
var isBackbone = process.argv.indexOf('backbone') > -1;
|
||||||
|
|
||||||
|
/** Flag used to specify a Content Security Policy build */
|
||||||
|
var isCSP = process.argv.indexOf('csp') > -1 || process.argv.indexOf('CSP') > -1;
|
||||||
|
|
||||||
/** Flag used to specify a legacy build */
|
/** Flag used to specify a legacy build */
|
||||||
var isLegacy = process.argv.indexOf('legacy') > -1;
|
var isLegacy = process.argv.indexOf('legacy') > -1;
|
||||||
|
|
||||||
/** Flag used to specify a mobile build */
|
/** Flag used to specify a mobile build */
|
||||||
var isMobile = !isLegacy && process.argv.indexOf('mobile') > -1;
|
var isMobile = !isLegacy && (isCSP || process.argv.indexOf('mobile') > -1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Flag used to specify `_.bindAll`, `_.extend`, and `_.defaults` are
|
* Flag used to specify `_.bindAll`, `_.extend`, and `_.defaults` are
|
||||||
@@ -304,6 +307,7 @@
|
|||||||
' Commands:',
|
' Commands:',
|
||||||
'',
|
'',
|
||||||
' lodash backbone Build containing all methods required by Backbone',
|
' lodash backbone Build containing all methods required by Backbone',
|
||||||
|
' lodash csp Build supporting default Content Security Policy restrictions',
|
||||||
' lodash legacy Build tailored for older browsers without ES5 support',
|
' lodash legacy Build tailored for older browsers without ES5 support',
|
||||||
' lodash mobile Build with IE < 9 bug fixes and method compilation removed',
|
' lodash mobile Build with IE < 9 bug fixes and method compilation removed',
|
||||||
' lodash strict Build with `_.bindAll`, `_.defaults`, and `_.extend` in strict mode',
|
' lodash strict Build with `_.bindAll`, `_.defaults`, and `_.extend` in strict mode',
|
||||||
|
|||||||
Reference in New Issue
Block a user