Skip to content

webpack "watchOptions" are not being honored #2725

@erik-viking

Description

@erik-viking

Version

3.0.5

Node and OS info

Node 8.12.0 / yarn 1.10.1 / Ubuntu 18.04.1

Steps to reproduce

  1. Configure package.json with new command: "watch": "vue-cli-service build --no-clean --watch"
  2. Create vue.config.js file and setup the following:
module.exports = {
    css: {
        sourceMap: process.env.NODE_ENV !== 'production',
    },
    configureWebpack: config => {
        config.watchOptions = {
            aggregateTimeout: 500,
            ignored: ['node_modules'],
        };
    }
};
  1. Run yarn watch
  2. Make a change to any file under node_modules

What is expected?

The watch should not try to build again because files under node_modules should be ignored

What is actually happening?

Another build is running after changing a file under node_modules

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions