问题
I want to use yarn
instead of bower
+ npm
. Yarn uses package.json and does not separate between frontend and backend packages.
I read so far, that I need to separate my frontend + backend dependencies with gulp: How to use one package manager for backend and frontend? (Yarn/NPM)
My app uses the MEAN stack. Currently, I'm using e.g. wiredep
to inject all frontend dependencies into my index.html
.
Question: How can I automatically separate the frontend dependencies from the backend dependencies in my build process?/Is there any option to specify frontend/backend packages with yarn?
来源:https://stackoverflow.com/questions/50687251/separating-frontend-backend-dependencies-with-gulp-yarn