mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-25 06:56:56 +02:00
fix(v2): revert webpack.resolve.symlinks = false (#5164)
* WathcOptions should work even if Webpack does not resolve symlinks * re-enable webpack resolve.symlinks = true * Use symlinked folder as source
This commit is contained in:
parent
f33cd079c2
commit
d3764f77fe
3 changed files with 10 additions and 4 deletions
|
@ -5,6 +5,7 @@
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const versions = require('./versions.json');
|
||||
const math = require('remark-math');
|
||||
|
@ -121,10 +122,11 @@ const isVersioningDisabled = !!process.env.DISABLE_VERSIONING || isI18nStaging;
|
|||
{
|
||||
// This plugin instance is used to test fancy edge cases
|
||||
id: 'docs-tests',
|
||||
// Using a symlinked folder as source, test against https://github.com/facebook/docusaurus/issues/3272
|
||||
path: 'dogfooding/docs-tests-symlink',
|
||||
routeBasePath: 'docs-tests',
|
||||
sidebarPath: 'dogfooding/docs-tests-sidebars.js',
|
||||
|
||||
// Using a symlinked folder as source, test for use-case https://github.com/facebook/docusaurus/issues/3272
|
||||
path: fs.realpathSync('dogfooding/docs-tests-symlink'),
|
||||
},
|
||||
],
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue