Including the minimal required CSS from ES6/webpack

UI Components for React
Post Reply
Posts: 3
Joined: 03 Sep 2018, 10:49

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: ... =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';
Why this has been removed from the doc? There are issues with this?

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests