mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
Webpack build notifier
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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'
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user