-
Notifications
You must be signed in to change notification settings - Fork 84
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
How to watch source changes? #343
Comments
I use |
It is strange. I see some clue in webpack watch config. I check that [feng@bcm wuhan2020.github.io]$ cat /proc/sys/fs/inotify/max_user_watches
8192 I do not know whether it is too slow or not. |
Do you save code manually or does your IDE save code automatically for you? Sometimes if the IDE saves code too frequently, webpack will start to delay updates. |
I save it manually using vim. |
To handle the problem of slow building in development. I create a custom webpack configuration file called const entry = {};
module.exports = {
entry: {'hackathonKanban': './src/pages/hackathonKanban/index.jsx'},
output: {
path: path.join(__dirname, '..', 'build'),
filename: '[name].js',
}
// .... same as webpack.config.js
} Then run The total build is about 6.5 seconds on my linux machine. |
您的问题
Frequent changes of code need quick rebuild by webpack.
So I add
watch
options to webpack config but it seems not work.I use command
npm run start
.如果有的话,请附图
额外的信息
The text was updated successfully, but these errors were encountered: