You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.
Take https://github.com/PaulKinlan/WebIntents as an example. He has a debug.js file in the src directory that should only be included when doing a build in debug mode. Currently this is not possible because you would define the build like this:
Problem is - there is no way to make the debug.js file build separately. I propose we allow you to define multiple options for a a build target. We would merge the options based on the modes option. For example I could move the debug.js file from the src directory into a debug directory in this project and then define a build option like:
When processing in debug mode, we would merge these options so we end up including both the src and debug directories in the build. In production mode builds, the bottom set of options would be ignored causing us to build src only.
There are other ways we could approach too but we do need to solve this somehow as having a debug and a production build of a project is a very common pattern in projects.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Take https://github.com/PaulKinlan/WebIntents as an example. He has a
debug.js
file in thesrc
directory that should only be included when doing a build in debug mode. Currently this is not possible because you would define the build like this:Problem is - there is no way to make the debug.js file build separately. I propose we allow you to define multiple options for a a build target. We would merge the options based on the modes option. For example I could move the
debug.js
file from thesrc
directory into adebug
directory in this project and then define a build option like:When processing in debug mode, we would merge these options so we end up including both the
src
anddebug
directories in the build. In production mode builds, the bottom set of options would be ignored causing us to buildsrc
only.There are other ways we could approach too but we do need to solve this somehow as having a debug and a production build of a project is a very common pattern in projects.
The text was updated successfully, but these errors were encountered: