简体   繁体   中英

React: Run on production without build

Before a deployment to production environment, people usually compile, build and compress react code. I know that makes file less-size and makes site faster.

I am working for a fast iterative project now and some time I need to check the issue even on production server. So, I assume if there is a solution to run my development app just as local style.

If I just use 'npm install', 'npm start' command on the production server, I think it should work. However, I am not sure if it is stable and I hope I can use normal deployment tool, such as IIS etc.

Here my question is: is there any way to run development code on IIS?

Thanks in advance. :)

Here's an example:

http://dimaqq.github.io/kanji-sudoku/

It's ES6 + React.js all in a static HTML, all transpiled by Babel in the browser.

Nowadays ES6 is supported natively, and the above can be simplified.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM