转到您的静态文件夹,然后在其中初始化您的npm项目。
cd flask_app/static$ npm init
在安装并保存npm软件包后,您可以像这样为他们提供服务:
<script src="{{ url_for('static', filename='node_modules/toastr/toastr.js')}}"></script>学分到:https : //preburst.io/creating-a-full-
stack-web-application-with-python-npm-webpack-and-
react-8925800503d9



