mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +02:00
feat(v2): rewrite docs loading strategy (#1092)
* feat(v2): rewrite docs loading strategy * Prettify * Lint * Allow resolving from library root * minor changes, refactor * copyright header
This commit is contained in:
parent
c9243e8922
commit
13a21b2374
36 changed files with 520 additions and 327 deletions
|
@ -71,10 +71,10 @@ module.exports = function createBaseConfig(props, isServer) {
|
|||
.set('@build', outDir)
|
||||
.set('@generated', path.resolve(__dirname, '../core/generated'))
|
||||
.set('@core', path.resolve(__dirname, '../core'))
|
||||
.set('@docusaurus', path.resolve(__dirname, '../docusaurus'))
|
||||
.end()
|
||||
.modules // prioritize our own node modules
|
||||
.add(path.resolve(__dirname, '../../node_modules'))
|
||||
.add('node_modules');
|
||||
.modules.add(path.resolve(__dirname, '../../node_modules')) // Prioritize our own node modules.
|
||||
.add(path.resolve(siteDir, 'node_modules')); // load user node_modules
|
||||
|
||||
function applyBabel(rule) {
|
||||
rule
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue