src/index.js
function notify(message) {
	if (Mix.isUsing('notifications')) {
		let contentImage = path.join(__dirname, '../img/sunshine.png');
		notifier.notify({
			title: 'The Extension of Laravel Mix',
			message: message,
			contentImage: contentImage,
			icon: (os.platform() === 'win32' || os.platform() === 'linux') ? contentImage : undefined
		});
	}
}
function notify(message) {
	if (Mix.isUsing('notifications')) {
		let contentImage = path.join(__dirname, '../img/sunshine.png');
		notifier.notify({
			title: 'The Extension of Laravel Mix',
			message: message,
			contentImage: contentImage,
			icon: (os.platform() === 'win32' || os.platform() === 'linux') ? contentImage : undefined
		});
	}
}
function notify ( message ) { if ( Mix . isUsing ( 'notifications' ) ) { let contentImage = path . join ( __dirname , '../img/sunshine.png' ) ; notifier . notify ( { title : 'The Extension of Laravel Mix' , message : message , contentImage : contentImage , icon : ( os . platform ( ) === 'win32' || os . platform ( ) === 'linux' ) ? contentImage : undefined } ) ; } }
Send a cross platform native notification.

@param {string} message The message.
Send a cross platform native notification .