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

Commit

Permalink
fix(watch): remove shorthand arg for watch
Browse files Browse the repository at this point in the history
remove shorthand arg for watch

Removes the shorthand argument for watch command due to collision with webpack. Closes #290
  • Loading branch information
danbucholtz committed Nov 10, 2016
1 parent 6b89fa2 commit 0685c0b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ npm run build --rollup ./config/rollup.config.js
| Sass | `ionic_sass` | `--sass` or `-s` |
| TSLint | `ionic_tslint` | `--tslint` or `-i` |
| UglifyJS | `ionic_uglifyjs` | `--uglifyjs` or `-u` |
| Watch | `ionic_watch` | `--watch` |
| Webpack | `ionic_webpack` | `--webpack` or `-w` |


Expand Down
2 changes: 1 addition & 1 deletion src/util/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function generateContext(context?: BuildContext): BuildContext {
setIonicEnvironment(context.isProd);

if (typeof context.isWatch !== 'boolean') {
context.isWatch = hasArg('--watch', '-w');
context.isWatch = hasArg('--watch');
}

context.inlineTemplates = true;
Expand Down
2 changes: 1 addition & 1 deletion src/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export function runBuildUpdate(context: BuildContext, changedFiles: ChangedFile[

const taskInfo: TaskInfo = {
fullArg: '--watch',
shortArg: '-w',
shortArg: null,
envVar: 'IONIC_WATCH',
packageConfig: 'ionic_watch',
defaultConfigFile: 'watch.config'
Expand Down

0 comments on commit 0685c0b

Please sign in to comment.