I know that this question has been asked earlier here but the answer to the question is not telling about any way in which this can be solved, so I am asking a new question. I need any workaround that can be used to solve the problem. I do not want to take out all the files to a separate directory because I want visual studio to manage my project. And I am not very much agreeing to the idea of having all the application code outside the actual project in a separate project.
Background I have following directory structure for my Hybrid app project:
Project
------------app
------------dist (created by gulp utility using files from app directory)
------------images
------------merges
------------node_modules
------------index.html
------------bower_components
We are using gulp to concatenate all our js files and place it in dist directory as a single file.
Problem The problem that we are facing while compiling our app is that the plugin tries to copy even the node modules as well as the app folder to the build which we do not want. Is there any way to specify what all files we want cordova to copy or say ignore during the platform specific build for all platforms. Like here I only want that files from only dist directory get copied we do not want anything from app directory to be copied during build.