Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
])
/**
* Group vendored scripts, generate manifests and version assets.
*/
bud
.dependencyManifest()
.inlineManifest()
.vendor()
.hash();
/**
* Copy static assets.
*/
bud
.copyAll(bud.src('images'), bud.dist('images'))
.copyAll(bud.src('fonts'), bud.dist('fonts'));
/**
* Configure transpilers.
*/
bud
.babel(bud.preset('babel/preset-wp'))
.postCss(bud.preset('postcss'));
/**
* Purge unused application styles.
*/
bud.purge({
enabled: bud.inProduction,
content: [bud.project('resources/views/**/*.blade.php')],
allow: require('purgecss-with-wordpress').whitelist,
/**
* Group vendored scripts, generate manifests and version assets.
*/
bud
.dependencyManifest()
.inlineManifest()
.vendor()
.hash();
/**
* Copy static assets.
*/
bud
.copyAll(bud.src('images'), bud.dist('images'))
.copyAll(bud.src('fonts'), bud.dist('fonts'));
/**
* Configure transpilers.
*/
bud
.babel(bud.preset('babel/preset-wp'))
.postCss(bud.preset('postcss'));
/**
* Purge unused application styles.
*/
bud.purge({
enabled: bud.inProduction,
content: [bud.project('resources/views/**/*.blade.php')],
allow: require('purgecss-with-wordpress').whitelist,
allowPatterns: require('purgecss-with-wordpress').whitelistPatterns,