Merge pull request #81 from Bouncey/feat/searchInNav

Feat: Search in nav
This commit is contained in:
Stuart Taylor
2018-05-21 13:28:22 +01:00
committed by Mrugesh Mohapatra
parent cb9358243d
commit aa9e498bc3
6 changed files with 203 additions and 12 deletions

View File

@@ -114,12 +114,16 @@ exports.modifyWebpackConfig = ({ config, stage }) => {
return generateBabelConfig(program, stage).then(babelConfig => {
config.removeLoader('js').loader('js', {
test: /\.jsx?$/,
/* eslint-disable max-len */
exclude: modulePath => {
return (
/node_modules/.test(modulePath) &&
!(/node_modules\/(ansi-styles|chalk)/).test(modulePath)
!(/(ansi-styles|chalk|strict-uri-encode|react-freecodecamp-search)/).test(
modulePath
)
);
},
/* eslint-enable max-len*/
loader: 'babel',
query: babelConfig
});
@@ -145,6 +149,7 @@ exports.modifyBabelrc = ({ babelrc }) =>
Object.assign({}, babelrc, {
plugins: babelrc.plugins.concat([
[
'transform-es2015-arrow-functions',
'transform-imports',
{
'react-bootstrap': {