You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 25, 2018. It is now read-only.
I am importing the bootstrap css in the entry point (index.jsx) by import 'bootstrap/dist/css/bootstrap.css'. I am running webpack 3.8.1 on Windows 10 machine.
Problem description
When using a simple Button element from the reactstrap package, the 'btn' and 'btn-primary' CSS classes are removed from the final css-file by PurifyCSS. If I use basic HTML, PurifyCSS will not remove the 'btn' and 'btn-primary' classes. I other words:
This works:
<button type='button' className='btn btn-primary'>Text</button>
(i.e. buttons will have correct styling)
But this does not:
import { Button } from 'reactstrap'
<Button color='primary'>{'Text'}</Button>
(i.e. buttons will not have styling, as PurifyCSS purifies a little too much)
Question
Is this the correct behaviour? Are there any workarounds?
The text was updated successfully, but these errors were encountered:
Setup
I am using the following packages:
I am importing the bootstrap css in the entry point (index.jsx) by
import 'bootstrap/dist/css/bootstrap.css'.
I am running webpack 3.8.1 on Windows 10 machine.Problem description
When using a simple Button element from the reactstrap package, the '
btn
' and 'btn-primary
' CSS classes are removed from the final css-file by PurifyCSS. If I use basic HTML, PurifyCSS will not remove the 'btn
' and 'btn-primary
' classes. I other words:This works:
<button type='button' className='btn btn-primary'>Text</button>
(i.e. buttons will have correct styling)
But this does not:
(i.e. buttons will not have styling, as PurifyCSS purifies a little too much)
Question
Is this the correct behaviour? Are there any workarounds?
The text was updated successfully, but these errors were encountered: