From bdfb3595a7fe6baf9f05c3917368144828e497b7 Mon Sep 17 00:00:00 2001 From: Michiel Date: Fri, 9 Sep 2022 10:42:49 +0200 Subject: [PATCH] Move options into devServer property --- .../component-framework-configuration.md | 46 ++++++++++--------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/content/guides/component-testing/component-framework-configuration.md b/content/guides/component-testing/component-framework-configuration.md index 73a33b3c32..6de10b96b5 100644 --- a/content/guides/component-testing/component-framework-configuration.md +++ b/content/guides/component-testing/component-framework-configuration.md @@ -567,28 +567,30 @@ import { defineConfig } from 'cypress' export default { component: { - framework: 'angular', - bundler: 'webpack', - options: { - projectConfig: { - root: '', - sourceRoot: 'apps/my-app', - buildOptions: { - outputPath: 'dist/my-app', - index: 'apps/my-app/src/index.html', - main: 'apps/my-app/src/main.ts', - polyfills: 'apps/my-app/src/polyfills.ts', - tsConfig: 'apps/my-app/tsconfig.app.json', - inlineStyleLanguage: 'scss', - assets: ['apps/my-app/src/favicon.ico', 'apps/my-app/src/assets'], - styles: ['apps/my-app/src/styles.scss'], - scripts: [], - buildOptimizer: false, - optimization: false, - vendorChunk: true, - extractLicenses: false, - sourceMap: true, - namedChunks: true, + devServer: { + framework: 'angular', + bundler: 'webpack', + options: { + projectConfig: { + root: '', + sourceRoot: 'apps/my-app', + buildOptions: { + outputPath: 'dist/my-app', + index: 'apps/my-app/src/index.html', + main: 'apps/my-app/src/main.ts', + polyfills: 'apps/my-app/src/polyfills.ts', + tsConfig: 'apps/my-app/tsconfig.app.json', + inlineStyleLanguage: 'scss', + assets: ['apps/my-app/src/favicon.ico', 'apps/my-app/src/assets'], + styles: ['apps/my-app/src/styles.scss'], + scripts: [], + buildOptimizer: false, + optimization: false, + vendorChunk: true, + extractLicenses: false, + sourceMap: true, + namedChunks: true, + }, }, }, },