Webpack 手表在 Windows 上的 Webstorm 上不起作用? [英] Webpack watch not working on Webstorm on Windows?

查看:30
本文介绍了Webpack 手表在 Windows 上的 Webstorm 上不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以基本上我有一个使用 Webpack 的项目,如果我使用 Webpack -w 构建,使用另一个编辑器编辑文件将触发监视;但是,如果我使用 Webstorm 编辑文件,则什么也不会发生.

So basically I have a project using Webpack, if I build using Webpack -w, editing the file with another editor will trigger the watch; however if I edit the file using Webstorm, nothing will happen.

我遇到了这个帖子,似乎我不是唯一一个,但是解决方案适用于 Ubuntu,所以我想知道 Windows 是否有类似的东西?

I have came across this post, which seems I'm not the only one, however that solution is for Ubuntu, so I was wondering if there is anything similar for Windows?

谢谢

推荐答案

如果不直接保存文件,似乎 Webpack watch 不起作用.请尝试关闭安全写入"选项(设置|外观和行为|系统设置|使用安全写入"(首先保存对临时文件的更改)).

Seems Webpack watch doesn't work if the file is not saved directly. Please try turning 'Safe write' option ( Settings | Appearance & Behavior | System Settings | Use "safe write" (save changes to temporary file first)) off.

2020.*选项名称为保存前备份文件

In 2020.* the option name is Back up files before saving

这篇关于Webpack 手表在 Windows 上的 Webstorm 上不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆