fix: all things (#124)

* fix 'Testing with Chai' 404 error

* Remove service worker and unregister old workers from clients

* Fix block name in QA and Chai intro

* Move the map to the index page

* Split test commands, have travis run format on test

* Only expand the first block

* Remove some margin from p tags on the index page

* Learn -> Curriculum link in header

* UI Fixes

* Use webpack plugin to destroy sercive worker

* Add spinner for unknown user state

* Fix map placement

* Fix vcurriculum button clicks
This commit is contained in:
mrugesh mohapatra
2018-06-01 03:36:42 +05:30
committed by Mrugesh Mohapatra
parent 6aff2bbe42
commit 910dd0584c
38 changed files with 330 additions and 341 deletions

View File

@@ -104,6 +104,7 @@ exports.createPages = ({ graphql, boundActionCreators }) => {
};
const webpack = require('webpack');
const RmServiceWorkerPlugin = require('webpack-remove-serviceworker-plugin');
const generateBabelConfig = require('gatsby/dist/utils/babel-config');
exports.modifyWebpackConfig = ({ config, stage }) => {
@@ -143,6 +144,9 @@ exports.modifyWebpackConfig = ({ config, stage }) => {
)
}
]);
config.plugin('RemoveServiceWorkerPlugin', RmServiceWorkerPlugin, [
{ filename: 'sw.js' }
]);
});
};
/* eslint-disable prefer-object-spread/prefer-object-spread */