合并webpack配置

    服务器端webpack配置和客户端webpack配置存在重复,将重复配置抽象到webpack.base.js配置文件中

    下载工具webpack-merge

    npm i webpack-merge

    优化:合并webpack配置 - 图1

    优化:合并webpack配置 - 图2

    优化:合并webpack配置 - 图3

    优化:合并webpack配置 - 图4