feishin/.erb/scripts/delete-source-maps.js

10 lines
356 B
JavaScript
Raw Permalink Normal View History

2022-12-20 00:59:14 +01:00
import path from 'path';
import rimraf from 'rimraf';
import webpackPaths from '../configs/webpack.paths';
export default function deleteSourceMaps() {
rimraf.sync(path.join(webpackPaths.distMainPath, '*.js.map'));
rimraf.sync(path.join(webpackPaths.distRemotePath, '*.js.map'));
2022-12-20 00:59:14 +01:00
rimraf.sync(path.join(webpackPaths.distRendererPath, '*.js.map'));
}