Files
w4rpservices/node_modules/laravel-mix/src/components/Notifications.js
2018-10-27 03:51:47 -05:00

24 lines
748 B
JavaScript
Vendored

let AutomaticComponent = require('./AutomaticComponent');
class Notifications extends AutomaticComponent {
/**
* webpack plugins to be appended to the master config.
*/
webpackPlugins() {
if (Mix.isUsing('notifications')) {
let WebpackNotifierPlugin = require('webpack-notifier');
return new WebpackNotifierPlugin({
title: 'Laravel Mix',
alwaysNotify: Config.notifications.onSuccess,
hint: process.platform === 'linux' ? 'int:transient:1' : undefined,
contentImage: Mix.paths.root(
'node_modules/laravel-mix/icons/laravel.png'
)
});
}
}
}
module.exports = Notifications;