weboptimizer 2.0.1612 → 2.0.1613
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -82,7 +82,7 @@ var main = function main(context) {
|
|
|
82
82
|
}, processOptions);
|
|
83
83
|
childProcesses = [];
|
|
84
84
|
processPromises = [];
|
|
85
|
-
possibleArguments = ['build', 'build:types', 'clear', 'document', 'lint', 'preinstall', 'serve', 'test', 'test:browser', 'test:coverage', 'test:coverage:report', '
|
|
85
|
+
possibleArguments = ['build', 'build:types', 'check:types', 'clear', 'document', 'lint', 'preinstall', 'serve', 'test', 'test:browser', 'test:coverage', 'test:coverage:report', 'watch'];
|
|
86
86
|
closeEventHandlers = [];
|
|
87
87
|
if (!(configuration.givenCommandLineArguments.length > 2)) {
|
|
88
88
|
_context3.next = 37;
|
|
@@ -141,7 +141,7 @@ var main = function main(context) {
|
|
|
141
141
|
files, we need to clear them first when running dev mode
|
|
142
142
|
(watching source files and reloading build automatically).
|
|
143
143
|
*/
|
|
144
|
-
['
|
|
144
|
+
['serve', 'watch'].includes(configuration.givenCommandLineArguments[2]) && configuration.path.source.base === configuration.path.target.base)) {
|
|
145
145
|
_context3.next = 20;
|
|
146
146
|
break;
|
|
147
147
|
}
|