Laravel-mix no build notification

半腔热情 提交于 2019-12-10 16:56:58

问题


I'm using Vue.js and Laravel-Mix, when I save the project I don't receive any notification like this :

I'm running npm run watch. My console doesn't display any errors / warnings when I compile.

I already checked the webpack.mix.js for mix.disableSuccessNotifications(); and I don't have that on my file, my notifications are working on my OS. I'm using Linux Mint.

I have this on package.json:

"watch": "node_modules/.bin/webpack --watch --watch-poll --config=node_modules/laravel-mix/setup/webpack.config.js",
  • npm : 3.10.10
  • node : 6.14.1

I have a friend that has the same project and he gets the notification "Build Successful"


回答1:


Check that you have notify-send installed.

follow this if you have any issues https://community.linuxmint.com/tutorial/view/2177




回答2:


Using Linux Mint 18.3, I needed to install the libnotify-bin package to have notifications displayed. Probably works on Ubuntu as well:

sudo apt-get install -y libnotify-bin




回答3:


I had this problem on macOS High Sierra. Turns out the OS automatically stopped notifications when I had an external monitor plugged in. The right-most icon on the task-bar on top allows you to disable this. Presumably it's so you don't get interruptions when doing presentations.




回答4:


I figured out that almost 70% of windows OS we disable notifications which later hides the successful compilation of Laravel Mix.

If you go to your computer on windows 10 that is

1.SETTINGS, 2.NOTIFICATIONS AND ACTIONS, 3.NOTIFICATIONS FROM OTHER SENDERS and switch it to on

This enables or it starts showing again.



来源:https://stackoverflow.com/questions/49755414/laravel-mix-no-build-notification

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!