Skip to content

Feature Request: load scripts in angular-cli.json conditionally? #4288

Closed
@Ismaestro

Description

@Ismaestro

As I mention in this stackoverflow question, I think It would be awesome if we could load scripts depending on the environment.

So In production I want to load a script while in develop not.

The syntax's in angular-cli.json could be:
{ "input": "script-only-for-dev.js", "environment": "dev" }

BR

Metadata

Metadata

Assignees

No one assigned

    Labels

    P5The team acknowledges the request but does not plan to address it, it remains open for discussionfeatureIssue that requests a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions