Skip to content

Commit

Permalink
Add webpack-build-notifier (#85)
Browse files Browse the repository at this point in the history
Add webpack plugin to show notifications on successful or failed builds.
This makes it easier to know when building has finished and you can
refresh, especially when you have the browser window open in the
foreground most of the time.

-- https://github.com/RoccoC/webpack-build-notifier
  • Loading branch information
pmeinhardt authored and andreasknoepfle committed Dec 20, 2017
1 parent 6a41372 commit 6e0677c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"sass-loader": "6.0.6",
"web-ext": "2.2.2",
"webpack": "3.8.1",
"webpack-build-notifier": "0.1.21",
"webpack-chain": "4.4.2",
"zip-webpack-plugin": "2.1.0"
},
Expand Down
6 changes: 6 additions & 0 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import path from 'path';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import ExtractTextPlugin from 'extract-text-webpack-plugin';
import CopyWebpackPlugin from 'copy-webpack-plugin';
import NotifierPlugin from 'webpack-build-notifier';

import Config from 'webpack-chain';

Expand Down Expand Up @@ -104,6 +105,11 @@ config.plugin('copy')
},
]]);

config.plugin('notifier')
.use(NotifierPlugin, [{
title: 'Tickety-Tick Build',
}]);

config.devtool('source-map');

export default config;
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7105,6 +7105,14 @@ webidl-conversions@^4.0.1, webidl-conversions@^4.0.2:
version "4.0.2"
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad"

[email protected]:
version "0.1.21"
resolved "https://registry.yarnpkg.com/webpack-build-notifier/-/webpack-build-notifier-0.1.21.tgz#8970ff44a6a290fa636fb1385045ebd08a089ab0"
dependencies:
ansi-regex "^2.0.0"
node-notifier "5.1.2"
strip-ansi "^3.0.1"

[email protected]:
version "4.4.2"
resolved "https://registry.yarnpkg.com/webpack-chain/-/webpack-chain-4.4.2.tgz#6234884f59c096ebd622535c6a69d31e8440ff99"
Expand Down

0 comments on commit 6e0677c

Please sign in to comment.