Skip to content

3.4.1 not watch node_modules? #1913

Closed
Closed
@luckyyyyy

Description

@luckyyyyy
  • Operating System: macos 10.14.4
  • Node Version: v10.15.2
  • NPM Version:
  • webpack Version: webpack@4.32.0
  • webpack-dev-server Version: 3.4.1
  • This is a bug
  • This is a modification request

Code

module.exports = {
  clientLogLevel: 'warning',
  historyApiFallback: {
    rewrites: [
      { from: /.*/, to: path.posix.join(config.assetsPublicPath, 'index.html') },
    ],
  },
  hot: true,
  contentBase: false, // since we use CopyWebpackPlugin.
  compress: true,
  host: HOST || config.host,
  // port: PORT || config.port,
  open: config.autoOpenBrowser,
  useLocalIp: true,
  overlay: config.errorOverlay
    ? { warnings: false, errors: true }
    : false,
  publicPath: config.assetsPublicPath,
  proxy: {
    '/api': {
      target: 'xxx',
      changeOrigin: true,
      secure: false,
    },
    '/login': {
      target: 'xxx',
      changeOrigin: true,
      secure: false,
    },
  },
  quiet: true,
  watchOptions: {
    poll: config.poll,
  },
  before: (app) => {
    app.use('/', express.static(utils.fullPath('static')))
  }
};

v3.4.1
https://wx4.sinaimg.cn/mw690/7ee06dc9ly1g3aec4n5cog20gn0a5hdx.gif

v3.3.1
https://wx4.sinaimg.cn/mw1024/7ee06dc9ly1g3aecd52q2g20gn0a54qv.gif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions