Skip to content

Commit 3bbb08e

Browse files
committed
fix conf.footer issue.
1 parent 6e59b97 commit 3bbb08e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/conf/webpack.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ const UPATH = require('upath');
55
const paths = require('./path');
66
const pkg = require('../../package.json');
77

8-
const define = paths.rdocConf && paths.rdocConf.footer && typeof paths.rdocConf.footer === 'string'
9-
? { FOOTER: JSON.stringify(paths.rdocConf.footer) } : {};
8+
const define = { FOOTER: null };
9+
if (paths.rdocConf && paths.rdocConf.footer && typeof paths.rdocConf.footer === 'string') {
10+
define.FOOTER = JSON.stringify(paths.rdocConf.footer);
11+
}
1012

1113
module.exports = {
1214
entry: {},

0 commit comments

Comments
 (0)