Webpack build notifier

This commit is contained in:
Arik Fraimovich
2016-11-24 22:08:17 +02:00
parent bb64b17e45
commit 3314599be7
3 changed files with 9 additions and 8 deletions

View File

@@ -117,13 +117,11 @@ ngModule.config(($routeProvider,
});
ngModule.run(($location, $rootScope, Auth) => {
// $rootScope.$on('$routeChangeStart', (event, to, from) => {
// console.log('to', to);
// });
// if (!Auth.isAuthenticated()) {
// Auth.login();
// }
$rootScope.$on('$routeChangeStart', (event, to) => {
if (!Auth.isAuthenticated()) {
console.log('need to login', to);
}
});
});
export default ngModule;

View File

@@ -73,6 +73,7 @@
"eslint": "^3.9.0",
"eslint-config-airbnb-base": "^9.0.0",
"eslint-loader": "^1.6.0",
"eslint-plugin-import": "^2.0.1"
"eslint-plugin-import": "^2.0.1",
"webpack-build-notifier": "^0.1.13"
}
}

View File

@@ -3,6 +3,7 @@
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var WebpackBuildNotifierPlugin = require('webpack-build-notifier');
var path = require('path');
@@ -17,6 +18,7 @@ var config = {
},
plugins: [
new WebpackBuildNotifierPlugin({title: 'Redash'}),
new webpack.DefinePlugin({
ON_TEST: process.env.NODE_ENV === 'test'
}),