Why `npm start` does not interpret {{#unless environment.production}}

    </script>
    {{#unless environment.production}}
    <script src="ember-cli-live-reload.js" type="text/javascript"></script>
    {{/unless}}
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" type="image/x-icon" href="favicon.ico">
  </head>
  <body>
  <app-root>Loading...</app-root>
  {{#each scripts.polyfills}}
  <script src="{{.}}"></script>
  {{/each}}
  <script>
    System.import('system-config.js').then(function () {
      System.import('main');
    }).catch(console.error.bind(console));
  </script>

how to ng buildknow how to interpret the string as {{#unless environment.production}}(when I'm using the angular cli)

but npm builddon't know to interpret it?

have a ngcall npmor vice versa

+4
source share

Source: https://habr.com/ru/post/1653090/


All Articles