mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 00:27:21 +02:00
feat: prototype blog & docs generation on dev
This commit is contained in:
parent
187a46d9b6
commit
221023fd51
12 changed files with 181 additions and 37 deletions
|
@ -2,7 +2,7 @@ const Config = require('webpack-chain');
|
|||
const path = require('path');
|
||||
|
||||
module.exports = function createBaseConfig(props) {
|
||||
const {outDir, uiPath, siteDir, publicPath} = props;
|
||||
const {outDir, uiPath, siteDir, baseUrl} = props;
|
||||
|
||||
const config = new Config();
|
||||
const isProd = process.env.NODE_ENV === 'production';
|
||||
|
@ -13,7 +13,7 @@ module.exports = function createBaseConfig(props) {
|
|||
.filename(
|
||||
isProd ? 'static/js/[name].[chunkhash].js' : 'static/js/[name].js'
|
||||
)
|
||||
.publicPath(isProd ? publicPath : '/');
|
||||
.publicPath(isProd ? baseUrl : '/');
|
||||
|
||||
config.resolve
|
||||
.set('symlinks', true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue