1.0.0 • Published 5 years ago
whitelistacf v1.0.0
Whitelist ACF-Fields
Script that filter all css classes from acf-json folder in WP Advanced Custom Field Plugin.
Prerequisites
ACF plugin and taskrunner for whitelisting classes like purgeCSS
Installing
npm run whitelistacf
Usage
- Generate JSON
const WhitelistACF = require("whitelistacf");
WhitelistACF.getClasses()
- In your wordpress theme root you will get a build folder with whitelistacf.json file. Use this file in your css taskrunner (in this example purgeCSS)
new PurgecssPlugin({
paths: glob.sync(
["**/*.php", "!node_modules/**/*"],
{ nodir: true }
),
whitelist: [require(`${paths.appBuild}/whitelistacf.json`)],
})
License
This project is licensed under the MIT License - see the LICENSE.md file for details
0.0.5
5 years ago
0.0.6
5 years ago
0.0.2
5 years ago
0.0.4
5 years ago
0.0.1
5 years ago
0.0.3-alpha
5 years ago
0.0.0
5 years ago
0.0.2-alpha
5 years ago
0.0.0-alpha
5 years ago
0.0.1-alpha
5 years ago
1.0.0
5 years ago