cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

By default, the node_modules will not be included into the content during the mbt build process. Whether there are some setting to force the mta to include the node_modules? As our project need to change some files after do the normal npm install'.

One trick I can figure out is that: we rename the "node_modules" to another name, and in the "start" script we build a softlink.

View Entire Topic
gregorw
SAP Mentor
SAP Mentor

Please check if the modules in your mta.yaml contain:

    build-parameters:
      ignore: ["node_modules/"]
or the source folders of your module contain a .cfignore with this content:
node_modules
But you should not include the node_modules into your Git repository. Only add it to the MTAR.