vuejs / vue-cli

🛠️ webpack-based tooling for Vue.js Development
https://cli.vuejs.org/
MIT License
29.76k stars 6.33k forks source link

watchOptions doesn't work #7420

Open Elrinth opened 1 year ago

Elrinth commented 1 year ago

What problem does this feature solve?

I'd like to ignore a folder which I create folders and images inside whenever I create a product. I don't want the whole website to reload because of that whenever I'm developing... Therefore I wish watchOptions with ignore worked. Like webpack! Here's maybe something related? https://github.com/vuejs/vue-cli/issues/2725

What does the proposed API look like?

module.exports = { //... watchOptions: { ignored: ['/files//*.js', '**/node_modules'], }, };

Currently it complains like this: INFO Starting development server... ERROR ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.

daneren2005 commented 1 year ago

I noticed the same thing and it has blocked me from upgrading to Vue CLI 5/Webpack 5. I doubt this is ever going to be fixed though. This whole CLI tool has been abandoned in favor of Vite.

lizouzt commented 10 months ago

A piece of fucking shit.