PurgeCSSPurgeCSS
API Reference
  • English
  • Français
GitHub
API Reference
  • English
  • Français
GitHub
  • PurgeCSS

    • About PurgeCSS
    • Getting Started
    • Configuration
    • Command Line Interface
    • Programmatic API
    • Safelisting
    • Extractors
  • Plugins

    • PostCSS
    • Webpack
    • Rollup
    • Gulp
    • Grunt
    • Gatsby
  • Guides

    • Vue
    • React
    • Angular
    • Next.js
    • Nuxt.js
    • Razzle
    • WordPress
    • Hugo
  • Comparison
  • Common Questions

    • How to use with CSS modules
    • How to use with Ant Design

Home > purgecss > RawCSS

RawCSS interface

Signature:

export interface RawCSS 

Properties

Property

Modifiers

Type

Description

name?

string

(Optional) name of the css, returned as the file of its result. It is used as the path of the css in source maps, like the path of a css file: the map sources are relative to the directory of sourceMap.to, which defaults to the name.

raw

string

css to purge