Skip to content

Conversation

@Lyrkan
Copy link
Collaborator

@Lyrkan Lyrkan commented Oct 29, 2017

This PR adds an enableBuildNotifications() method to the public API in order to use the webpack-notifier plugin (closes #187):

// With default options
Encore.enableBuildNotifications();

// Conditionally
Encore.enableBuildNotifications(!Encore.isProduction());

// With custom options
Encore.enableBuildNotifications(true, (options) => {
    options.title = 'Foo';
});

The plugin is disabled by default and needs to be installed manually using yarn add --dev webpack-notifier.

@Lyrkan Lyrkan added the Feature New Feature label Oct 29, 2017
@weaverryan
Copy link
Member

Wow! Once again, this is just really nice work. I'm super excited about this feature :)

@weaverryan weaverryan merged commit 6fec895 into symfony:master Oct 31, 2017
weaverryan added a commit that referenced this pull request Oct 31, 2017
This PR was merged into the master branch.

Discussion
----------

Add Encore.enableBuildNotifications() method

This PR adds an `enableBuildNotifications()` method to the public API in order to use the `webpack-notifier` plugin (closes #187):

```js
// With default options
Encore.enableBuildNotifications();

// Conditionally
Encore.enableBuildNotifications(!Encore.isProduction());

// With custom options
Encore.enableBuildNotifications(true, (options) => {
    options.title = 'Foo';
});
```

The plugin is disabled by default and needs to be installed manually using `yarn add --dev webpack-notifier`.

Commits
-------

6fec895 Add Encore.enableBuildNotifications() method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New Feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add webpack-notifier

2 participants