We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 774e043 commit e80dd39Copy full SHA for e80dd39
lib/before-build-task-args.ts
@@ -0,0 +1,8 @@
1
+
2
+module.exports = function (hookArgs, $options) {
3
+ if(!hookArgs || !hookArgs.args) {
4
+ return;
5
+ }
6
+ const unitTesting = $options && $options.env && $options.env.unitTesting || false;
7
+ hookArgs.args.push(`-PunitTesting=${!!unitTesting}`);
8
+};
package.json
@@ -39,6 +39,11 @@
39
"type": "before-liveSync",
40
"script": "lib/before-liveSync.js",
41
"inject": true
42
+ },
43
+ {
44
+ "type": "before-build-task-args",
45
+ "script": "lib/before-build-task-args.js",
46
+ "inject": true
47
}
48
]
49
},
0 commit comments