我想与sindresorhus'node del plugin(或真正node-glob
)的绝对路径,但它似乎不起作用。我尝试使用cwd
root
和var path = require('path');
var del = require('del');
var root = path.resolve(__dirname, '..'); // this could be more involved..
var delOptions = {
cwd: root,
force: true
};
del([
'browser/dist/**',
], delOptions, function (err, paths) {
console.log('removed files:');
console.log('- ' + paths.join('\n- '));
});
进行摆弄,但没有让它发挥作用。
任何人都有意见吗?我的一次尝试:
product_cat