* This is done because if you use the cli default property, you get a primiatve "null" or "false", * but when using the cli arguments, you always get back strings. This method aims at correcting those * for both realms. So that both realms _convert_ into primatives.
(options)
| 38 | * for both realms. So that both realms _convert_ into primatives. |
| 39 | */ |
| 40 | function processCssmodulesArgument(options) { |
| 41 | if (options['css-modules'] === 'true' || options['css-modules'] === true) |
| 42 | return true; |
| 43 | if (options['css-modules'] === 'false' || options['css-modules'] === false) |
| 44 | return false; |
| 45 | if (options['css-modules'] === 'null' || options['css-modules'] === null) |
| 46 | return null; |
| 47 | |
| 48 | return options['css-modules']; |
| 49 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…