
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
pretty-mix-notifications
Advanced tools
Take 2 seconds to make your laravel-mix notifications pretty.

npm install pretty-mix-notifications --save-dev or yarn add pretty-mix-notifications --devlet Notifications = require('pretty-mix-notifications');mix.extend('prettyNotifications', new Notifications);Here is a full example of a webpack.mix.js file that uses this package:
let mix = require('laravel-mix');
let Notifications = require('pretty-mix-notifications');
mix.extend('prettyNotifications', new Notifications);
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
mix.js('resources/assets/js/app.js', 'public/js')
.sass('resources/assets/sass/app.scss', 'public/css')
.prettyNotifications();
If you want to override the default configuration you can pass an object with your config to the prettyNotifications function.
Below we override the default successIcon and the default title.
mix.js('resources/assets/js/app.js', 'public/js')
.sass('resources/assets/sass/app.scss', 'public/css')
.prettyNotifications(
{
title: "Pretty Mix Notifications",
successIcon: path.resolve("./success.png"),
}
);
Here is the full list of the supported configuration. You can also pass any valid node-notifier option, that may not be listed here. Just keep in mind, that not every option of node-notifier works in the Windows platform.
The notification title. Defaults to Laravel-Mix build.
The absolute path to the project logo to be displayed as a content image in the notification. Optional.
The sound to play for success notifications. Defaults to the value of the submarine for mac OS and Notification.Default for windows. Set to false to play no sound for success notifications.
successSound: 'Notification.Mail'The sound to play for warning notifications. Defaults to the value of the submarine for mac OS and Notification.Default for windows. Set to false to play no sound for success notifications.
warningSound: 'Notification.Mail'The sound to play for failure notifications. Defaults to the value of the submarine for mac OS and Notification.Default for windows. Set to false to play no sound for success notifications.
failureSound: 'Notification.Mail'Defines when success notifications are shown. Can be one of the following values:
True to suppress the warning notifications, otherwise false (default).
True to suppress the compilation started notifications (default), otherwise false.
True to activate (focus) the terminal window when a compilation error occurs. Note that this only works on Mac OSX (for now). Defaults to false. Regardless of the value of this config option, the terminal window can always be brought to the front by clicking on the notification.
The absolute path to the icon to be displayed for success notifications. Defaults to the included ./icons/success.png.
The absolute path to the icon to be displayed for warning notifications. Defaults to the included ./icons/warning.png.
The absolute path to the icon to be displayed for failure notifications. Defaults to the included ./icons/failure.png.
The absolute path to the icon to be displayed for compilation started notifications. Defaults to the included ./icons/compile.png.
A function which returns a formatted notification message. The function is passed two parameters:
This function must return a String. The default messageFormatter will display the filename which contains the error/warning followed by the error/warning message. Note that the message will always be limited to 256 characters.
A function to be called when the notification is clicked. By default it activates the Terminal application. (Does not work on windows)
The function's signature
{
// other options
onClick: function(notifierObject, options){}
}
A function to be called when the notification closes. By default it does not do anything.
The function's signature
//Configuration options
{
// other options
onTimeout: function(notifierObject, options){}
}
Thank you for considering contributing to the Pretty Mix Notifications.
Pretty Mix Notifications is open-sourced software licensed under the MIT license.
FAQs
Make your laravel mix notifications pretty.
We found that pretty-mix-notifications demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.