We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 976d9fd commit 66ce243Copy full SHA for 66ce243
packages/@angular/cli/tasks/serve.ts
@@ -24,6 +24,9 @@ export default Task.extend({
24
const appConfig = projectConfig.apps[0];
25
26
const outputPath = serveTaskOptions.outputPath || appConfig.outDir;
27
+ if (this.project.root === outputPath) {
28
+ throw new SilentError ('Output path MUST not be project root directory!');
29
+ }
30
rimraf.sync(path.resolve(this.project.root, outputPath));
31
32
const serveDefaults = {
0 commit comments