LoginSignup
0
1

More than 3 years have passed since last update.

Angular CLI プロジェクトで npm link を使うための設定

Posted at

angular.json"preserveSymlinks": true を追加する。

angular.json
{
  "projects": {
    ...
    "my-app": {
      "architect": {
        ...
        "build": {
            "builder": "@angular-devkit/build-angular:browser",
            "options": {
              "index": "src/index.html",
              "main": "src/main.ts",
              "polyfills": "src/polyfills.ts",
              "tsConfig": "src/tsconfig.app.json",
              ...
              "preserveSymlinks": true
            }
        },
        ...
      }
      ...
    }
    ...
  }
}

以上。

参考

Problem with ng serve --preserve-symlinks Angular/CLI 6.0.0 #10735

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1