Skip to content

chore: Update webpack scripts and script loading strategy

Calvin Yu请求将github/fork/leoendless/chore/devServer合并到master

Created by: leoendless

Signed-off-by: leoliu leoliu@yunify.com

What type of PR is this?

/kind update

What this PR does / why we need it:

  1. Refactor scripts loading strategy. Using manifest.json to generate the scripts and styles list in the index.html.
  2. Reduce dev servers by replacing webpack-dev-server with webpack-dev-middleware. The concurrently package may cause OOM error when developing with "concurrently -k --raw "yarn dev:client" "yarn dev:server"".
  3. Use hard-source-webpack-plugin to speed the webpack build process in dev mode.
  4. Remove unuse webpack alias which is covered by resolve.modules.

Which issue(s) this PR fixes:

Fixes #

Special notes for reviewers:

Additional documentation, usage docs, etc.:

合并请求报告

加载中