commercetools / sunrise-spa

SUNRISE shop template as a single-page application
https://sunrise-spa.now.sh
Apache License 2.0
51 stars 78 forks source link

After building the application I am getting some error in noscript tag in index.html #303

Closed satyam21041997 closed 1 year ago

satyam21041997 commented 1 year ago

In CLI I run the command "npm run build". D:\CommerceToolsApp\Sunrise App\CommerceTools-Sunrise-App>npm run build

sunrise@0.1.0 build vue-cli-service build

| Building for production...

WARNING Compiled with 4 warnings 7:04:11 pm

warning in ./sunrise.config.js

Critical dependency: the request of a dependency is an expression

warning

asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). This can impact web performance. Assets: img/acc.28d8436e.jpg (3.96 MiB) img/jeans1.b34a7088.jpg (770 KiB) img/store-icon-29-29px.7fa0e864.png (734 KiB) img/sho3.af3ba0f5.jpg (285 KiB) img/sunset-girl.94aaa4f8.jpg (496 KiB) img/s3.543f2eb7.jpg (2.13 MiB) img/banner1.b99c5516.jpg (828 KiB) img/banner2.e4488c60.jpg (2.05 MiB) css/app.b897c2dd.css (325 KiB) js/app.52d68312.js (252 KiB) js/chunk-vendors.74f85c27.js (4.51 MiB) fonts/fontawesome-webfont.svg (434 KiB) fonts/nucleo-outline.ttf (553 KiB) fonts/nucleo-outline.eot (553 KiB) fonts/nucleo-outline.woff (553 KiB) fonts/nucleo-outline.svg.tmp (1.66 MiB)

warning

entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance. Entrypoints: app (5.08 MiB) css/chunk-vendors.278d29cf.css js/chunk-vendors.74f85c27.js css/app.b897c2dd.css js/app.52d68312.js

warning

webpack performance recommendations: You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application. For more info visit https://webpack.js.org/guides/code-splitting/

File Size Gzipped

dist\js\chunk-vendors.74f85c27.js 4614.25 KiB 1305.77 KiB dist\js\app.52d68312.js 252.23 KiB 71.67 KiB dist\js\easyzoom.js 4.00 KiB 1.52 KiB dist\css\app.b897c2dd.css 325.41 KiB 45.57 KiB dist\css\font-awesome.css 30.29 KiB 6.90 KiB dist\css\chunk-vendors.278d29cf.css 7.10 KiB 1.64 KiB dist\css\dlicon.css 5.15 KiB 0.99 KiB dist\css\selectboxit.min.css 4.11 KiB 1.14 KiB dist\css\easyzoom.css 0.95 KiB 0.43 KiB

Images and other types of assets omitted.

DONE Build complete. The dist directory is ready to be deployed. INFO Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html

After that in "dist" directory, I am getting all the static files. In index.html I am getting this message in noscript tag

When I tried to deploy it to AWS cloud I am getting a blank page and there is nothing inside

element. Please help me to resolve it.