Skip to content

Commit 10990bf

Browse files
committed
fix: #5 path separator on Windows
1 parent 7dd3b84 commit 10990bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/beidou-plugin-react/config/config.default.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'use strict';
1+
const path = require('path');
22

33
module.exports = (appInfo) => {
44
const config = {};
@@ -20,7 +20,7 @@ module.exports = (appInfo) => {
2020
config.view = {
2121
defaultViewEngine: 'react',
2222
defaultExtension: '.jsx',
23-
root: `${appInfo.baseDir}/app/views,${appInfo.baseDir}/client`,
23+
root: `${path.join(appInfo.baseDir, 'app/views')},${path.join(appInfo.baseDir, 'client')}`,
2424
};
2525

2626
return config;

0 commit comments

Comments
 (0)