LoginSignup
1
0

More than 5 years have passed since last update.

Angular7 でwebpack configを調整して、ng serveをできるようにする

Posted at

はじめに

LCNEM(https://lcnem.cc/) で、CIを導入することになった時、
cryptpモジュールを上手くバンドルできず、(https://yu-kimura.jp/2018/09/30/angular6-crypto/)

ng serveができないという問題が生じていました。
それがなんとか解決できたので、その方法をご紹介します。

方法

  1. 下記を npm i する
    npm i -D @angular-builders/custom-webpack

  2. angular.jsonを変更する。

  3. serveのbuildのところを @angular-builders/dev-server:generic に上書きする。


 "serve": {
          "builder": "@angular-builders/dev-server:generic",
          "options": {
            "browserTarget": "app-project-name:build"
          },

以上!

参考記事

1
0
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
1
0