How to add third party CSS JS files in SPFx no-javascript web-part sppkg file?

Occasional Contributor

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.


1 Reply