From 19a6da335ec4fe7da1a0f53aa9f761f6778356a5 Mon Sep 17 00:00:00 2001 From: Katerina Skroumpelou Date: Tue, 29 Nov 2022 15:43:39 +0200 Subject: [PATCH] fix(bundling): place files in the right folders for Web Vite apps (#13464) --- .../application/files/app-vite/browserslist | 13 ------------- .../app-vite/{index.html => index.html__tmpl__} | 3 ++- .../files/app-vite/{src => public}/favicon.ico | Bin .../files/app-vite/src/polyfills.ts__tmpl__ | 7 ------- 4 files changed, 2 insertions(+), 21 deletions(-) delete mode 100644 packages/web/src/generators/application/files/app-vite/browserslist rename packages/web/src/generators/application/files/app-vite/{index.html => index.html__tmpl__} (73%) rename packages/web/src/generators/application/files/app-vite/{src => public}/favicon.ico (100%) delete mode 100644 packages/web/src/generators/application/files/app-vite/src/polyfills.ts__tmpl__ diff --git a/packages/web/src/generators/application/files/app-vite/browserslist b/packages/web/src/generators/application/files/app-vite/browserslist deleted file mode 100644 index 8d6179367e..0000000000 --- a/packages/web/src/generators/application/files/app-vite/browserslist +++ /dev/null @@ -1,13 +0,0 @@ -# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers -# For additional information regarding the format and rule options, please see: -# https://github.com/browserslist/browserslist#queries -# -# If you need to support different browsers in production, you may tweak the list below. - -last 1 Chrome version -last 1 Firefox version -last 2 Edge major versions -last 2 Safari major version -last 2 iOS major versions -Firefox ESR -not IE 9-11 # For IE 9-11 support, remove 'not'. \ No newline at end of file diff --git a/packages/web/src/generators/application/files/app-vite/index.html b/packages/web/src/generators/application/files/app-vite/index.html__tmpl__ similarity index 73% rename from packages/web/src/generators/application/files/app-vite/index.html rename to packages/web/src/generators/application/files/app-vite/index.html__tmpl__ index 87cf6af7ea..4252e3f12d 100644 --- a/packages/web/src/generators/application/files/app-vite/index.html +++ b/packages/web/src/generators/application/files/app-vite/index.html__tmpl__ @@ -6,7 +6,8 @@ - + + <<%= prefix %>-root>-root> diff --git a/packages/web/src/generators/application/files/app-vite/src/favicon.ico b/packages/web/src/generators/application/files/app-vite/public/favicon.ico similarity index 100% rename from packages/web/src/generators/application/files/app-vite/src/favicon.ico rename to packages/web/src/generators/application/files/app-vite/public/favicon.ico diff --git a/packages/web/src/generators/application/files/app-vite/src/polyfills.ts__tmpl__ b/packages/web/src/generators/application/files/app-vite/src/polyfills.ts__tmpl__ deleted file mode 100644 index 2adf3d05b6..0000000000 --- a/packages/web/src/generators/application/files/app-vite/src/polyfills.ts__tmpl__ +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Polyfill stable language features. These imports will be optimized by `@babel/preset-env`. - * - * See: https://github.com/zloirock/core-js#babel - */ -import 'core-js/stable'; -import 'regenerator-runtime/runtime';