Comments (6)
@lavrinec are you using webpack?
from leonardo.
@MrFrankel no, I have been using Angular CLI
from leonardo.
you should not have the leonardo added to the scripts in production build.
Best is to have a separate angular-cli.json for dev and prod
from leonardo.
So the best way to deal with this would be to have two main.ts and two angular-cli.sjon - one for prod and one for dev. Than I would not need to check environment variable (as it is done in example here ), but I would just include register() in dev main.ts and not in prod.
Did I understand that correctly?
from leonardo.
@lavrinec, this is exactly how we do it. We have 2 main.ts files, one for dev and one for prod
from leonardo.
@vlio20 ok, then I will do the same. Thank you for help
from leonardo.
Related Issues (20)
- Add an "Add State" button to the Scenarios tab HOT 1
- Close editor tab on save
- List Item Selection indicator is buggy HOT 1
- Change images and fix up docs HOT 1
- Add Clear All to the Recorder tab HOT 1
- StateOption data as promise or pass through when mocks are not available HOT 5
- Add a search filter to the state options dropdown HOT 1
- Add tooltip on Leonardo head HOT 1
- Add the ability to drag and drop Leonardo icon in the screen HOT 1
- Filter relevant requests for a particular feature
- Filter requests by status
- Add option to return specific request or state after delete.
- Clicking on the "edit" icon and clicking on the row, both open the edit request dialog
- Add Record App flow to allow new application to easily add leonardo
- Revive 'Add State' from the recorder tab
- Replace Travis-CI With GitHub Actions
- Sidebar Doesnโt Closes When Clicking On Gray Area
- Cancelling HTTP requests does not work
- Add support for mocking fetch requets
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leonardo.