Files
kube-now/.erb/scripts/delete-source-maps.js
Junior 15e6692647
Some checks failed
Test / test (macos-latest) (push) Waiting to run
Test / test (windows-latest) (push) Waiting to run
Test / test (ubuntu-latest) (push) Failing after 13m2s
commit inicial do projeto
2026-04-21 18:18:56 -03:00

18 lines
517 B
JavaScript

const fs = require('fs');
const path = require('path');
const rimraf = require('rimraf');
const webpackPaths = require('../configs/webpack.paths').default;
function deleteSourceMaps() {
if (fs.existsSync(webpackPaths.distMainPath))
rimraf.sync(path.join(webpackPaths.distMainPath, '*.js.map'), {
glob: true,
});
if (fs.existsSync(webpackPaths.distRendererPath))
rimraf.sync(path.join(webpackPaths.distRendererPath, '*.js.map'), {
glob: true,
});
}
module.exports = deleteSourceMaps;