Hi,
Is there a way to extend the standard PCF CLI's webpack? In one of the project, I want to use webpack to include additional files to be copied to the build (out) folder.
TIA
Andre
There isn't any kind of eject mechansim - but you can edit the webpackconfig in the node_modules/pcf-scripts/webpackconfig.js
This is technically unsupported and be careful that you don't loose your edits if you restore the npm packages.
I think if you start changing the webpack then you are essentially going to go it alone and will need to manually pack your controls going forwards.
What is it that you want to change in the webpack config? You should use the <resources> in the control manifest to add additional html/css/images/js/resx
@ScottDurow is there a way now to include js files? It was possible in earlier versions but it's not possible now or you know something that I don't know.
@ScottDurow @HemantG
I'm trying to use React FullCalendar control in my PCF, the problem is, it has some CSS files inside the node_modules, I'm getting the error that webpack cannot load those files, any suggestion for the best approach with them, should I add the path of the CSS file inside the node_module in the manifest file, or I should edit the webpack configuration to add CS
Hi @aboodhamwi ,
I've used react-big-calendar, and had the same problem.
I've added the css from inside the node_modules in my manifest, and worked like a charm.
Even if the PCF-packing doesn't make problems, I'm not sure if it works for every 3rd party control, because actually the namespace prefix inside this css files is missing, but in my case worked without issues.
Kind regards,
Diana
Hi @DianaBirkelbach
Thanks for referring to this library, for FullCalendar, I tried to add the CSS to the manifest and it didn't work, but with react-big-calendar it did work
Thanks
Have you tried modifying the pcf webpack config and adding css-loaders in your project?
@rexkenley I tried to do it, but it did fail.
@aboodhamwi
Can you post your code on github so I can take a look at it?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Chiara Carbone as our Community Spotlight for November…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 652 Most Valuable Professional
Michael E. Gernaey 410 Super User 2025 Season 2
developerAJ 236