pyblocks/pyblocks-gui/.erb/scripts/clean.js

14 lines
301 B
JavaScript
Raw Permalink Normal View History

2023-05-25 17:00:54 +00:00
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);
});