Ahalya
Ahalya

Reputation: 21

Why do add assets of `ngx-monaco-editor-v2` in angular.json file

In my project, I have to make use of monaco editor library to view the text files. Why this has to be added in build and test of angular.json? Without this, the editor is not rendered properly

Reference: https://www.npmjs.com/package/ngx-monaco-editor-v2

  "apps": [
    {
      "assets": [
      { "glob": "**/*", "input": "node_modules/monaco-editor", "output": "/assets/monaco/" }
      ],
      ...
    }
    ...
  ],
  ...
}```

Upvotes: 1

Views: 26

Answers (1)

Naren Murali
Naren Murali

Reputation: 57986

The package is referring to the path /assets/monaco/ for using images/icons/scss/js.

/assets/monaco/ - source code search results

Upvotes: 0

Related Questions