You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vendor directory isn't part of bud setup, it's just directory that contains livewire esm file published via acorn using command wp acorn vendor:publish --tag=livewire:assets
Agreement
Describe the issue
I have a directory inside publicPath that I would like to exclude from cleanup.
This is my public path setting:
app.setPublicPath('/app/themes/sage/public/');
According to bud documentation on extensions, I've tried configuring this in bud.config.js as follows:
app.extensions.get('@roots/bud-extensions/clean-webpack-plugin').set('cleanOnceBeforeBuildPatterns', [`**/*`, `!vendor/**`]);
However, this doesn't work. When I run
bud build
, the vendor directory inside /public is still removed.I also tried completely disabling the extension, but that doesn't seem to work either:
app.extensions.get('@roots/bud-extensions/clean-webpack-plugin').disable();
vendor directory isn't part of bud setup, it's just directory that contains livewire esm file published via acorn using command
wp acorn vendor:publish --tag=livewire:assets
By the way, I believe there is an error in the documentation: https://bud.js.org/learn/general-use/extensions#enable-a-registered-extension. The correct extension name is clean-webpack-plugin, not webpack-clean-plugin.
Expected Behavior
The yarn build command should preserve the vendor directory inside the public folder as it is excluded in extension options.
Actual Behavior
Setting an option in the extension doesn't seem to work. Additionally, it appears that I cannot disable the extension at all.
Steps To Reproduce
version
6.24.0
Logs
No response
Configuration
Relevant .budfiles
No response
The text was updated successfully, but these errors were encountered: