Some checks failed
Test / test (macos-latest) (push) Has been cancelled
Test / test (ubuntu-latest) (push) Has been cancelled
Test / test (windows-latest) (push) Has been cancelled
Publish / publish (macos-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
16 lines
474 B
JavaScript
16 lines
474 B
JavaScript
import fs from 'fs';
|
|
import path from 'path';
|
|
import { rimrafSync } from 'rimraf';
|
|
import webpackPaths from '../configs/webpack.paths';
|
|
|
|
export default function deleteSourceMaps() {
|
|
if (fs.existsSync(webpackPaths.distMainPath))
|
|
rimrafSync(path.join(webpackPaths.distMainPath, '*.js.map'), {
|
|
glob: true,
|
|
});
|
|
if (fs.existsSync(webpackPaths.distRendererPath))
|
|
rimrafSync(path.join(webpackPaths.distRendererPath, '*.js.map'), {
|
|
glob: true,
|
|
});
|
|
}
|