Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Steal different files for dev mode and build (prod)

$
0
0
Is there a way some how to steal different files while developing and building application?

For example I have module that defines API endpoints for dev mode API endpoint looks like:

/api/v1/items/{_id}

but for production the same API enpoint looks like:
/a/1/i/{_id}

I thought to define to files and steal different while developing and building. If steal while build process would have some variable like (steal.config().env)

What is the best way to implement this?

Viewing all articles
Browse latest Browse all 3491

Trending Articles