benjycui / bisheng

Transform Markdown(and other static files with transformers) into a SPA website using React.
MIT License
2.9k stars 419 forks source link

是否能把entry.nunjucks.jsx开放出来或以插件的形式开放 #168

Open ksh033 opened 5 years ago

ksh033 commented 5 years ago

使用bisheng做了一个api文档,但是我的例子有使用了dva,在写例子的时候dva的内容就调用不了。无奈只能把代码下载下来把entry.nunjucks.jsx给改了 ReactDOM.render( router, document.getElementById('react-content'), ); 替换成 const dva=require("dva").default; const app=dva({ history:history.createHistory() }) app.router(rconfig); window.app=app; app.start("#react-content");

LeuisKen commented 5 years ago

bisheng-core 做出来可以解决掉这个问题,等我们这边后续的进度吧