Skip to content

Commit

Permalink
meta: add custom plugin to handle symlinks
Browse files Browse the repository at this point in the history
Webpack has a special option for handling symbolink links.
  • Loading branch information
aduh95 committed Apr 10, 2024
1 parent 021574d commit aa0bc4e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const config = {
],
},
],
'./src/plugins/custom.js',
],
scripts: [
{
Expand Down
14 changes: 14 additions & 0 deletions src/plugins/custom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
'use strict';

module.exports = function (context, options) {
return {
name: 'custom-docusaurus-plugin',
configureWebpack(config, isServer, utils) {
return {
resolve: {
symlinks: false,
},
};
},
};
};

0 comments on commit aa0bc4e

Please sign in to comment.