seiyable / vue-simple-svg

A simple Vue.js plugin that allows you to load a SVG image as an inline SVG with an access to change its fill colors
MIT License
80 stars 23 forks source link

.babelrc should not be published to NPM because the package is pre-built #12

Open vankeer opened 5 years ago

vankeer commented 5 years ago

.babelrc should be added to .npmignore, because the package is published pre-built. Otherwise if you have this as a dependency, the .babelrc might be picked up, but possibly you don't have the babel plugins installed, resulting in a build error.

Also related: it is better to explicitly add .npmignore, otherwise npm will fallback to the .gitignore file, with possibly unintended side-effects.

Thanks for this plugin!