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 is no solution to add a full directory of assets ? - I need to embed a js library as a whole plus all different assets files and mime-types (not only css/code but also wasm file and the like).
Then I need to change another config in the webpack that would prevent me to rewrite huge code base libraries - i.e. resolve configuration when javascript import doesn't include the extension '.js' - so yes it would be great if we could override some properties from that webpack configuration.
So your solution in updating the node_module file is not ideal - I would simply have a local copy in the project - that might desync with the new library versions - but at least that could be commited with the project and kept if we reinstall the node modules. At build time 0 simply add a copy command in the specified node module - before compilation.
A bit hacky to be able to use the solution.
I create a loader to do this. I have done for SSAS and python files. Editing the webpackconfig js you will be able to do this.
Please read my blog post that I had published in the community, maybe it help you.
Have you tried modifying the pcf webpack config and adding css-loaders in your project?
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
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
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