TransWikia.com

I want to use sharepoint site asset folder for hosting client side files, where should I define this path in my spfx web part files?

SharePoint Asked by ejagkrch on November 28, 2021

I’m trying to host the JS files (webparttempdeploy) of my web-part in the asset library folder, but I’m not able to reference that in the config files.

In which file I have to defined that path? the web-part on deployment keep showing me deploying.

This client side solution will get content from the following domains:
https://localhost:4321/.

2 Answers

Have you used Production build or plain build?

Seems, if you do not use --ship or --produciton flags while packaging, "includeCleintSideAssets" flag is ignored

enter image description here

Additional reference here = "gulp package-solution" will raise this warning "- [package-solution] This is not a production build (--ship or --production).."

Answered by Rohit on November 28, 2021

If you are looking for hosting your client-side web part from Microsoft 365 CDN then check below references:

  1. Host your client-side web part from Microsoft 365 CDN
  2. SharePoint Framework - Deploy SPFx WebParts To Office 365 Public CDN

Answered by Ganesh Sanap on November 28, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP