R
R
Roman2018-07-23 09:40:46
Bootstrap
Roman, 2018-07-23 09:40:46

Webpack how to build an isolated widget?

Good afternoon. I assemble the widget using webpack, I use many third-party libraries in the widget, including bootstrap4, when I insert my widget into the site, the layout of both the widget itself and the site suffers as a result of mixing CSS.
How to collect \ write in isolation?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman, 2018-07-23
@xii

Solved by using `iframe`

L
Lev Roskoshin, 2018-07-23
@anjilnew

well, if you are open to new things, I would advise you to make such components on Vue in general, they have a scoped property for styles, but of course it all depends on the task. In general, I think this can help you https://medium.com/seek-blog/the-end-of-global-css...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question