1

I have a spfx project with a list view command set and webpart, they are using some third party artifacts which are there in "dist" folder that needs to be deployed to appcatalog (tenant or site collection) "clientassets" library. In the "package-soution.json" I have "includeClientSideAssets": true, but it only includes the listview commandset and webpart assets.

At the moment I am doing this manually.

in npmignore file I have a entry "!dist" in gitignore I have a entry for "dist"

Options explored: cdnBasePath (here also I have to put the files manually) gulp -spsave (requires user credentials, so not a option)

3
  • Did you try removing entries for "dist" folder from ignore files? Oct 12, 2022 at 7:56
  • yes from npmignore, not from gitignore
    – user4205
    Oct 12, 2022 at 7:58
  • Tried removing from both not working, added a entry in "package.json" for "files": ["dist"] still the folder not included in sppkg file,
    – user4205
    Oct 12, 2022 at 8:10

1 Answer 1

1

I ended up using a PowerShell script to create a folder in "clientassets" library in app catalog site and upload the artifacts to it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.