I'm using the @wordpress/scripts package and I want to modify the output of the css files to make them go into a subfolder called css. How do I either remove the original MiniCssExtractPlugin settings or modify the original settings made in the default config? I don't know how to target the already created MiniCssExtractPlugin so I can remove it or modify it.
I have tried adding
plugins: [
...defaultConfig.plugins,
new RemoveEmptyScriptsPlugin(),
new MiniCssExtractPlugin({
filename: "css/[name].css",
ignoreOrder: false,
}),
]
to a webpack.config.js file in the project folder and it does output the css in a subfolder called css, however, the css ALSO get output in the root of the output folder.