Python Web Server for React App with Webpack Bundling
The python-webpack-react project sets up a Python Web server to serve a React application, with Webpack used for transforming and bundling the files. To get started:
- Navigate to /templates/static and run
npm init
to install the required packages. - Watch will monitor file changes and update the app in real time. Run
npm run watch
in the /templates/static directory. - Start the server by running
python3 run.py
from the root directory. This sets up a development environment where the React app is served by the Python server.
3.74MB
文件大小:
评论区