How to add grunt-notify
module to Magento 2
Grunt config.
Reference: https://github.com/dylang/grunt-notify
Thanks.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityHow to add grunt-notify
module to Magento 2
Grunt config.
Reference: https://github.com/dylang/grunt-notify
Thanks.
Step: 1
Install grunt-notify
npm install grunt-notify --save-dev
Step: 2
Now load the grunt-notify library by adding below entry in the Gruntfile.js
grunt.loadNpmTasks('grunt-notify');
Additional Configurations
If you wan to customize the message popup styles and notification timings.
Note: But after adding this overrides only I got notifications in Windows 10.
// example configuration for notification hooks
grunt.initConfig({
notify_hooks:{
options:{
enable:true,
title: 'Task Completed',
max_jshint_notifications:5,
},
uncss:{
options:{
title: 'Task Completeddd',
message:"Error occured",
},
},
},
});
Settings WRT to OS notifications:
Nothing to install for LINUX and Windows 8.x or Higher. If you are using Mac please read the documentation in github
References
If you yet to configure grunt for Magento there is a Documentation on Howto's