I'm working on a vue-cli/webpack project, and so far I've been adding packages with the following command:
yarn add <package> --dev
It saves them in the package.json
file under the devDependencies
. Everything works fine, but my build time is ~1 min. (yarn build
)
I'm wondering if it is the proper way? I've seen some suggestions where people are adding them npm i <package> --save
, or simply npm i <package>
.