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.
Request clarification before answering.
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_modulesBut you should not include the node_modules into your Git repository. Only add it to the MTAR.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.