tasks.json 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. "version": "2.0.0",
  3. "tasks": [
  4. // {
  5. // "label": "build",
  6. // "command": "webpack --config webpack/webpack.prod.js",
  7. // "type": "shell",
  8. // "group": { "kind": "build", "isDefault": true },
  9. // "isBackground": true
  10. // },
  11. {
  12. "type": "npm",
  13. "label": "webpack: dev server",
  14. "script": "dev",
  15. "promptOnClose": true,
  16. "isBackground": true,
  17. "problemMatcher": {
  18. "owner": "webpack",
  19. "severity": "error",
  20. "fileLocation": "absolute",
  21. "pattern": [
  22. {
  23. "regexp": "ERROR in (.*)",
  24. "file": 1
  25. },
  26. {
  27. "regexp": "\\((\\d+),(\\d+)\\):(.*)",
  28. "line": 1,
  29. "column": 2,
  30. "message": 3
  31. }
  32. ],
  33. "background": {
  34. "activeOnStart": true,
  35. "beginsPattern": "Compiling\\.\\.\\.",
  36. "endsPattern": "Compiled successfully\\."
  37. }
  38. }
  39. }
  40. ]
  41. }