Is this issue specific to the vue-loader or is it more related to webpack builds in general?
Consider a basic HTML page with Bootstrap 4 loaded and two buttons added:
<button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-secondary>Secondary</button>
Despite having no margin set, there is a small gap between the buttons upon rendering:
https://i.sstatic.net/cW02T.png
However, when the same buttons are added to a Vue application, the gap between them disappears. To recreate this, simply create a project using vue-cli with default settings, install the bootstrap npm package, import it, and add the buttons to the root component.
This issue did not occur when using a webpack template instead of vue-cli, suggesting that the default webpack configuration set by vue-cli may be causing this inconsistency.
Are there any overrides that can be made to the webpack config to restore the previous behavior? This would eliminate the need to add margins to buttons placed next to each other.
If anyone can provide insight into why the buttons typically have spacing between them despite no margin being set, it would greatly assist in finding a solution.