GithubHelp home page GithubHelp logo

Comments (6)

MrFrankel avatar MrFrankel commented on August 20, 2024

@lavrinec are you using webpack?

from leonardo.

lavrinec avatar lavrinec commented on August 20, 2024

@MrFrankel no, I have been using Angular CLI

from leonardo.

MrFrankel avatar MrFrankel commented on August 20, 2024

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.

lavrinec avatar lavrinec commented on August 20, 2024

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.

vlio20 avatar vlio20 commented on August 20, 2024

@lavrinec, this is exactly how we do it. We have 2 main.ts files, one for dev and one for prod

from leonardo.

lavrinec avatar lavrinec commented on August 20, 2024

@vlio20 ok, then I will do the same. Thank you for help

from leonardo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.