Deleting Files & Directories
By default the following directories are cleaned out for each build:
1
"includes/js"
2
"includes/css"
3
"includes/fonts"
4
"includes/media"
5
"includes/images"
Copied!
If you would like to add additional directories, you can do so by configuring a new instance of the CleanWebpackPlugin:
1
const elixir = require("coldbox-elixir");
2
const CleanWebpackPlugin = require("clean-webpack-plugin");
3
4
elixir.config.mergeConfig({
5
plugins: [
6
new CleanWebpackPlugin(["my/custom/directory"], { root: elixir.rootPath })
7
]
8
});
Copied!
Last modified 3yr ago
Copy link