Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.4.1 not watch node_modules? #1913

Closed
1 of 2 tasks
luckyyyyy opened this issue May 22, 2019 · 2 comments
Closed
1 of 2 tasks

3.4.1 not watch node_modules? #1913

luckyyyyy opened this issue May 22, 2019 · 2 comments

Comments

@luckyyyyy
Copy link

luckyyyyy commented May 22, 2019

  • 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

@hiroppy
Copy link
Member

hiroppy commented May 22, 2019

Yes, sorry so please add node_modules.

    options.watchOptions.ignored = options.watchOptions.ignored || [
      /node_modules/,
    ];

#1794

@hiroppy hiroppy closed this as completed May 22, 2019
@luckyyyyy
Copy link
Author

Yes, sorry so please add node_modules.

    options.watchOptions.ignored = options.watchOptions.ignored || [
      /node_modules/,
    ];

#1794

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants