-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
more thorough setup instructions would be appreciated #2
Comments
@seiyria, not sure what exactly you need to solve. For example you need 2 versions of In your code you need to import dummy file
Plugin replaces dummy file with needed file. |
Weird. I tried that and it didn't seem to work. I had to use pbowyers
solution to replace at runtime. Thanks anyhow!
…On Wed, Nov 22, 2017, 01:58 AksimO ***@***.***> wrote:
@seiyria <https://github.com/seiyria>, not sure what exactly you need to
solve.
This plugin allows to you to have different files for different env
For example you need 2 versions of ‘src/folder/environment.ts’ file.
You need to create 3 files
First with dummy values (mainly for you IDE not o complain that file does
not exist). ‘src/folder/environment.dev.ts’ and
‘src/folder/environment.prod.ts‘ files with enc dependent constants.
In your code you need to import dummy file
‘’’
import { MY_CONST } from “./folder/environment”;
‘’’
Plugin replaces dummy file with needed file.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAum2Q7u7JTXCz0zLQW94F2ph7L9cTqKks5s49Q3gaJpZM4QmnMK>
.
|
@seiyria, Is it one of your public repos? I would like to check why I didn't work. |
@AksimO I never pushed it because I couldn't get it to work, sorry. |
Not sure how to import the environment using this plugin, for example.
The text was updated successfully, but these errors were encountered: