Meta tags:
author= Full Human;
keywords= purgecss, css, unused css, remove css, optimize css, tailwindcss, postcss, webpack, purge;
description= PurgeCSS is a tool to remove unused CSS from your project;
Headings (most frequently used words):
method, react, use, craco, run, purgecss, cli, in, postbuild, eject, create, app,
Text of the page (most frequently used words):
#purgecss (19), the (14), react (12), webpack (7), css (6), postcss (6), glob (5), and (5), plugin (5), create (5), app (5), build (5), craco (5), for (4), with (4), plugins (4), languages (4), next (3), this (3), page (3), paths (3), new (3), html (3), github (3), fullhuman (3), add (3), all (3), require (3), const (3), config (3), method (3), static (3), src (3), use (3), api (3), vue (2), purgecssplugin (2), files (2), about (2), following (2), code (2), save (2), dev (2), npm (2), install (2), you (2), configuration (2), eject (2), content (2), postbuild (2), using (2), single (2), application (2), building (2), how (2), français (2), english (2), reference (2), prev, floriel, john, bachir, peter, holcomb, charlie, david, san, ffloriel, contributors, last, updated, edit, apphtml, true, nodir, appsrc, sync, specify, path, source, more, information, remove, unused, see, https, com, directly, before, list, manifestplugin, import, now, modify, file, adding, rest, imports, prod, conf, need, order, expose, offered, original, index, output, scripts, package, json, run, cli, tsx, style, module, exports, custom, including, can, added, apps, follow, then, installation, instructions, guide, assumes, are, your, javascript, library, user, interfaces, comfortable, environment, learning, best, way, start, ant, design, modules, common, questions, comparison, hugo, wordpress, razzle, nuxt, guides, gatsby, grunt, gulp, extractors, safelisting, programmatic, command, line, interface, getting, started,
Text of the page (random words):
react purgecss purgecss api reference languages languages english français github api reference languages languages english français github purgecss about purgecss getting started configuration command line interface programmatic api safelisting extractors plugins postcss webpack gulp grunt gatsby guides vue react next js nuxt js razzle wordpress hugo comparison common questions how to use with css modules how to use with ant design react react is a javascript library for building user interfaces create react app is a comfortable environment for learning react and is the best way to start building a new single page application in react this guide assumes you are using create react app to build your single page react application method 1 use craco custom postcss plugins including purgecss can be added to create react app apps using craco follow the craco installation instructions then install the purgecss postcss plugin and add it to the craco config npm i save dev fullhuman postcss purgecss craco config js const purgecss require fullhuman postcss purgecss module exports style postcss plugins purgecss content src html src tsx src ts method 2 run purgecss cli in postbuild add the following code in package json scripts postbuild purgecss css build static css css content build index html build static js js output build static css method 3 eject create react app you need to eject in order to expose the webpack configuration offered by original create react app install the webpack plugin for purgecss npm i save dev glob all purgecss webpack plugin now modify the file config webpack prod conf js by adding the following code with the rest of the imports import purgecss webpack plugin and glob all const purgecssplugin require purgecss webpack plugin const glob require glob all and directly before new manifestplugin in the plugins list add this remove unused css with purgecss see https github com fullhuman purgecss for more information about purgecss specify the path of the html files and source files new purgecssplugin paths paths apphtml glob sync paths appsrc nodir true edit this page last updated 9 14 22 8 27 pm contributors ffloriel david san charlie peter holcomb john bachir floriel prev vue next next js
|