UNPKG

361 BJavaScriptView Raw
1const CleanPlugin = require('clean-webpack-plugin');
2const merge = require('deepmerge');
3
4module.exports = (neutrino, options = {}) => {
5 const { paths, root } = merge({ paths: [], root: neutrino.options.root }, options);
6
7 neutrino.config
8 .plugin(options.pluginId || 'clean')
9 .use(CleanPlugin, [paths, { root, verbose: neutrino.options.debug }]);
10};