mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-25 05:57:53 +02:00
refactor: folder structure & filename
This commit is contained in:
parent
9070fb50ab
commit
dbf78c5c14
10 changed files with 79 additions and 74 deletions
|
@ -2,7 +2,7 @@ const Config = require('webpack-chain');
|
|||
const path = require('path');
|
||||
|
||||
module.exports = function createBaseConfig(props) {
|
||||
const {outDir, themePath, sourceDir, publicPath} = props;
|
||||
const {outDir, uiPath, sourceDir, publicPath} = props;
|
||||
|
||||
const config = new Config();
|
||||
const isProd = process.env.NODE_ENV === 'production';
|
||||
|
@ -17,7 +17,7 @@ module.exports = function createBaseConfig(props) {
|
|||
|
||||
config.resolve
|
||||
.set('symlinks', true)
|
||||
.alias.set('@theme', themePath)
|
||||
.alias.set('@ui', uiPath)
|
||||
.set('@source', sourceDir)
|
||||
.set('@generated', path.resolve(__dirname, '../generated'))
|
||||
.set('@core', path.resolve(__dirname, '../core'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue