Skip to content

Commit

Permalink
fix conf.footer issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 18, 2019
1 parent 6e59b97 commit 3bbb08e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/conf/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ const UPATH = require('upath');
const paths = require('./path');
const pkg = require('../../package.json');

const define = paths.rdocConf && paths.rdocConf.footer && typeof paths.rdocConf.footer === 'string'
? { FOOTER: JSON.stringify(paths.rdocConf.footer) } : {};
const define = { FOOTER: null };
if (paths.rdocConf && paths.rdocConf.footer && typeof paths.rdocConf.footer === 'string') {
define.FOOTER = JSON.stringify(paths.rdocConf.footer);
}

module.exports = {
entry: {},
Expand Down

0 comments on commit 3bbb08e

Please sign in to comment.