1 changed files with 3 additions and 3 deletions
@ -1,10 +1,10 @@ |
|||||
const CleanPlugin = require('clean-webpack-plugin'); |
const CleanPlugin = require('clean-webpack-plugin'); |
||||
const merge = require('deepmerge'); |
const merge = require('deepmerge'); |
||||
|
|
||||
module.exports = ({ config }, options) => { |
module.exports = (neutrino, options) => { |
||||
const { paths, root } = merge({ paths: [], root: process.cwd() }, options); |
const { paths, root } = merge({ paths: [], root: neutrino.options.root }, options); |
||||
|
|
||||
config |
neutrino.config |
||||
.plugin('clean') |
.plugin('clean') |
||||
.use(CleanPlugin, [paths, { root }]); |
.use(CleanPlugin, [paths, { root }]); |
||||
}; |
}; |
||||
|
Loading…
Reference in new issue