Including the minimal required CSS from ES6/webpack
Posted: 03 Sep 2018, 14:10
Seems that there was a documented way to not include the whole CSS for primefaces components, as documented in the official "Get Started" doc now, but only styles from specific components.
This is not available in the doc anymore (but can be found in the google cache: https://webcache.googleusercontent.com/ ... =firefox-b)
Example. Looking at the gulp source I tried something like this:
Why this has been removed from the doc? There are issues with this?
This is not available in the doc anymore (but can be found in the google cache: https://webcache.googleusercontent.com/ ... =firefox-b)
Example. Looking at the gulp source I tried something like this:
Code: Select all
Code: Select all
import { Slider } from 'primereact/components/slider/Slider';
import 'primereact/components/common/Common.css';
import 'primereact/components/slider/Slider.css';