Custom webpack configure | Community
Skip to main content
Level 2
April 27, 2022
Question

Custom webpack configure

  • April 27, 2022
  • 2 replies
  • 2223 views

Hi

 

Here is my requirement where am using headless app, post invoking I want to push data to Adobe campaign classic through acc-js-sdk but in this sdk canvas module has been used so when I run aio app deploy/run I am getting below error.

so now in order to support canvas.node file I need to use node-loader but am not able to find webpack.config.js file to update so is there any way I can resolve this?

 

 @sarahxxu  Can you please help?

 

Thanks

Naveen

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Adobe Employee
May 19, 2022

I found this 

https://github.com/purplecabbage/firefly-custom-webpack

 

Jesse is one of the masterminds behind app builder so I am assuming it works.  I have not tried. 

Level 2
May 19, 2022

Above link suggests to do post building app but for me its happening while building app itself (aio app deploy/run).

Adobe Employee
May 19, 2022

Very good point...

I do not know the answer off hand but one good thing is that its all open source 
adobe/aio-cli-plugin-app: Create, Build and Deploy Cloud Native Applications (github.com)

 

CLI root project 

adobe/aio-cli: Adobe I/O Extensible CLI (github.com)

 

That is a good place to look to figure out how it works and see if there is a way to override. If its not possible to override you could fork the app plugin and make your own version of it that does what you need it to.  Way more work than a simple config overload that is for sure.  

Adobe Employee
September 6, 2022