Skip to content
Snippets Groups Projects
Commit ff4bde6d authored by Hermann's avatar Hermann
Browse files

more debugging

parent 72846347
No related branches found
No related tags found
No related merge requests found
......@@ -55,6 +55,7 @@ export function checkAuthenticated() {
return new Promise((resolve) => {
if (APISession.authenticated) resolve();
else {
console.log(apiUrl);
console.log('looking for token');
// let's see if we have a stored token
const token = localStorage.get('token');
......
// Start with prod config
const config = require('./webpack.config.prod.js');
// Replace prod with dev config
const webpack = require('webpack');
const CompressionPlugin = require('compression-webpack-plugin');
// Start with dev config
const config = require('./webpack.config.js');
// Remove development server and code map
config.devServer = undefined;
config.devtool = '';
// Add optimization plugins
config.plugins = [
new webpack.optimize.UglifyJsPlugin(),
new webpack.optimize.AggressiveMergingPlugin(),
new CompressionPlugin({
asset: '[path].gz[query]',
algorithm: 'gzip',
test: /\.js$|\.css$|\.html$/,
threshold: 10240,
minRatio: 0.8,
}),
];
// Replace development with production config
config.resolve.alias.networkConfig = `${__dirname}/src/networkConfig.dev.json`;
console.log(config.resolve.alias.networkConfig);
module.exports = config;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment