Created
February 10, 2020 20:14
-
-
Save gimelfarb/2ae7040c4b96587a90ac2f9de8b949b1 to your computer and use it in GitHub Desktop.
VSCode task for webpack dev server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": "2.0.0", | |
| "tasks": [ | |
| { | |
| "label": "start-web-server", | |
| "type": "npm", | |
| "script": "start", | |
| // "path": "packages/xxx/", <-- for monorepo | |
| "isBackground": true, | |
| "problemMatcher": [ | |
| { | |
| "owner": "webpack", | |
| "source": "webpack", | |
| "pattern": [ | |
| { | |
| "regexp": "^ERROR in (.*)$", | |
| "file": 1, | |
| }, | |
| { | |
| "regexp": "^(.*)$", | |
| "message": 1 | |
| }, | |
| { | |
| "regexp": "@(.*)(\\d+:\\d+)", | |
| "location": 2 | |
| } | |
| ], | |
| "background": { | |
| "activeOnStart": true, | |
| "beginsPattern": "Compiling\\.\\.\\.", | |
| "endsPattern": "(Compiled)|(Failed to compile)" | |
| } | |
| } | |
| ] | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment