question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Collision with Bootstrap 4 on $sizes namespace

See original GitHub issue

The $sizes variable in the generated output scss is colliding with the same variable name used by Bootstrap 4.

Is there a way to change variable names or at least scope the variables to a namespaces in a minor release?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
cascornelissencommented, Oct 1, 2018

@illepic, this has been added in the 3.x release which is currently a Release Candidate, you can install this version using:

npm install svg-spritemap-webpack-plugin@next

The original issue you reported should be fixable by using the following options, the rest of your configuration might need some restructuring for this version as well so be sure to check the new documentation on options.

new SVGSpritemapPlugin({
    styles: {
        variables: {
            sizes: 'new-variable-name',
        }
    }
});

Is this something you could check? If so, I’d love to hear the results so I can finish up the upcoming major release.

1reaction
cascornelissencommented, Sep 4, 2018

It’s coming in v3 with the styles.variables.sizes option.

If you want to you can backport the changes that’ll be in v3 to v2 but it’s not worth my own time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to namespace Twitter Bootstrap so styles don't conflict
Most simple solution - start to use custom build isolated css classes for Bootstrap. For example, for Bootstrap 4.1 ...
Read more >
How to namespace Bootstrap CSS - Jonáš Jančařík
I recently came across this issue while working on a website which is built on Bootstrap, but where the developers changed some of...
Read more >
JavaScript - Bootstrap
No conflict. Sometimes it is necessary to use Bootstrap plugins with other UI frameworks. In these circumstances, namespace collisions can occasionally occur.
Read more >
How to namespace bootstrap (v4.1.3) - YouTube
In this video I'll show you how to quickly namespace Bootstrap css. I build a lot of WordPress sites so many times I...
Read more >
How to Isolate Bootstrap CSS to Avoid Conflicts - Formden.com
It makes it incredibly easy to create beautiful, responsive designs that just work. However, it's not always possible to use Bootstrap for your ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found