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