Crova
Crova

Reputation: 179

NPM - Excluding a part of dependency from installing

I have a problem, which come from the thing that I replace a bootstrap.min.css with another one. I adjusted .gitignore in way, that on github repo there is only /node_modules/bootstrap/dist/css/bootstrap.min.css from all the dependencies. But after cloning the repo and use "npm i", this file is overrided. So I just want to add this specified file to .npmignore. But I don't have a idea how to do that. Could anybody want to reveal me the secret? :) Thanks in advance!

Upvotes: 0

Views: 32

Answers (0)

Related Questions