I have a small Flask app which currently sources jQuery and highlight.js from external servers. I'd like to make these local dependencies which I pull in via NPM.
What is the standard practice for this? Should I create package.json
file in the same directory as my static
and templates
directories and serve node_modules
as a separate static dir ala this question?
I'm packaging and distributing my app using pip
, so any solution needs to be compatible with that.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…