Forum Discussion
bhoomesh
Jan 09, 2022Copper Contributor
How to add third party CSS JS files in SPFx no-javascript web-part sppkg file?
I have implemented Carousel in SPFx No Javascript Web-part.
Now, I need to publish that web part to sppkg file. This package should contain all hird party CSS JS files which I have used in that slider.
Can anyone suggest to me for below questions?
1 How to add third-party CSS and JS files in the SPFx solution and import that in contosoWebPart.ts file?
2 What steps I need to follow while publishing the app with gulp bundle --ship and gulp package-solution --ship file all third-party CSS and JS files should be added in that package.
Thanks
1 Reply
Sort By
- Maggan_WCopper ContributorTake a look at this article: https://mundrisoft.com/tech-bytes/how-to-add-external-libraries-and-assets-in-sharepoint-client-side-web-part/