https://github.com/efureev/laravel-mix-notifier
https://github.com/efureev/laravel-mix-notifier
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/efureev/laravel-mix-notifier
- Owner: efureev
- Created: 2021-11-25T10:32:18.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-25T20:08:33.000Z (over 3 years ago)
- Last Synced: 2025-01-15T09:03:05.582Z (3 months ago)
- Language: TypeScript
- Size: 115 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Custom Notifications for Laravel Mix

Laravel Mix extension to display notifications from Mix when your project will build.
The package uses webpack-plugin `webpack-notifier`
## Install
```bash
npm install @feugene/laravel-mix-notifier --save-dev
```## Usage
```javascript
const mix = require('laravel-mix')
require('laravel-mix-notifier')mix.notify()
mix.notify({
title: 'Hello!',
contentImage: 'assets/logo.png',
version: '12.2.2-dev',
showVersion: false,
})
```* `title` - Notification's title. Default: load from your `package.json` from `description` field
* `contentImage` - Image that show in notifications
* `version` - Version. Default: load from your `package.json` from `version` field
* `showVersion` - Show version in the `title`. Default: `true`