14 lines
301 B
JavaScript
14 lines
301 B
JavaScript
import rimraf from 'rimraf';
|
|
import fs from 'fs';
|
|
import webpackPaths from '../configs/webpack.paths';
|
|
|
|
const foldersToRemove = [
|
|
webpackPaths.distPath,
|
|
webpackPaths.buildPath,
|
|
webpackPaths.dllPath,
|
|
];
|
|
|
|
foldersToRemove.forEach((folder) => {
|
|
if (fs.existsSync(folder)) rimraf.sync(folder);
|
|
});
|