Merge pull request #81 from Bouncey/feat/searchInNav
Feat: Search in nav
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
cb9358243d
commit
aa9e498bc3
@@ -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': {
|
||||
|
Reference in New Issue
Block a user