I need to put a lot of js files in the public/js folder.This causes the CPU to reach 100%.
File path:
src
public
- js
- 1.js
- 2.js
- ...
node_modules
These js files will not be updated. How to make Vue-Cli not observe these files?
I tried this configuration in vue.config.js but it doesn't work.
const path = require('path');
module.exports = {
configureWebpack: {
devServer: {
watchOptions: {
ignored: ['node_modules', 'public'],
}
}
}
}