Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit 0685c0b

Browse files
committed
fix(watch): remove shorthand arg for watch
remove shorthand arg for watch Removes the shorthand argument for watch command due to collision with webpack. Closes #290
1 parent 6b89fa2 commit 0685c0b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ npm run build --rollup ./config/rollup.config.js
9999
| Sass | `ionic_sass` | `--sass` or `-s` |
100100
| TSLint | `ionic_tslint` | `--tslint` or `-i` |
101101
| UglifyJS | `ionic_uglifyjs` | `--uglifyjs` or `-u` |
102+
| Watch | `ionic_watch` | `--watch` |
102103
| Webpack | `ionic_webpack` | `--webpack` or `-w` |
103104

104105

src/util/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function generateContext(context?: BuildContext): BuildContext {
5555
setIonicEnvironment(context.isProd);
5656

5757
if (typeof context.isWatch !== 'boolean') {
58-
context.isWatch = hasArg('--watch', '-w');
58+
context.isWatch = hasArg('--watch');
5959
}
6060

6161
context.inlineTemplates = true;

src/watch.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ export function runBuildUpdate(context: BuildContext, changedFiles: ChangedFile[
262262

263263
const taskInfo: TaskInfo = {
264264
fullArg: '--watch',
265-
shortArg: '-w',
265+
shortArg: null,
266266
envVar: 'IONIC_WATCH',
267267
packageConfig: 'ionic_watch',
268268
defaultConfigFile: 'watch.config'

0 commit comments

Comments
 (0)