Created
May 12, 2021 18:14
-
-
Save sibelius/24f63eef7f43b15dc73c4a0be11bbef8 to your computer and use it in GitHub Desktop.
Revisions
-
sibelius created this gist
May 12, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ module.exports = { plugins: [require.resolve('./sitePlugin')], } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ // eslint-disable-next-line module.exports = function (context, options) { return { name: 'custom-docusaurus-plugin', // eslint-disable-next-line configureWebpack(config, isServer, utils) { return { resolve: { alias: { path: require.resolve('path-browserify'), }, fallback: { fs: false, http: require.resolve('stream-http'), https: require.resolve('https-browserify'), os: require.resolve('os-browserify/browser'), }, }, }; }, }; };