Skip to content

Commit 7112b52

Browse files
committed
Show system notifications for errors
Uses webpack-notifier under the hood. No setup necessary. Supports Notification Center on OS X, Toaster on Windows 8 and later. Falls back to Growl if present. Ref facebook#89.
1 parent a35ac92 commit 7112b52

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

config/webpack.config.dev.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ var path = require('path');
1111
var autoprefixer = require('autoprefixer');
1212
var webpack = require('webpack');
1313
var HtmlWebpackPlugin = require('html-webpack-plugin');
14+
var WebpackNotifierPlugin = require('webpack-notifier');
1415

1516
// TODO: hide this behind a flag and eliminate dead code on eject.
1617
// This shouldn't be exposed to the user.
@@ -99,6 +100,7 @@ module.exports = {
99100
}),
100101
new webpack.DefinePlugin({ 'process.env.NODE_ENV': '"development"' }),
101102
// Note: only CSS is currently hot reloaded
102-
new webpack.HotModuleReplacementPlugin()
103+
new webpack.HotModuleReplacementPlugin(),
104+
new WebpackNotifierPlugin(),
103105
]
104106
};

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
"style-loader": "0.13.1",
5454
"url-loader": "0.5.7",
5555
"webpack": "1.13.1",
56-
"webpack-dev-server": "1.14.1"
56+
"webpack-dev-server": "1.14.1",
57+
"webpack-notifier": "1.3.0"
5758
},
5859
"devDependencies": {
5960
"bundle-deps": "^1.0.0",

0 commit comments

Comments
 (0)