remove mkdirp, use fs.mkdirSync instead

devel
HF 1 year ago
parent 6c41cb0450
commit 9a63d039a8

1
package-lock.json generated

@ -79,7 +79,6 @@
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"generate-package-json-webpack-plugin": "^2.6.0",
"mkdirp": "^1.0.4",
"ttag-cli": "^1.9.3",
"ttag-po-loader": "0.0.2",
"webpack": "^5.67.0",

@ -93,7 +93,6 @@
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"generate-package-json-webpack-plugin": "^2.6.0",
"mkdirp": "^1.0.4",
"ttag-cli": "^1.9.3",
"ttag-po-loader": "0.0.2",
"webpack": "^5.67.0",

@ -13,7 +13,6 @@ const fs = require('fs');
const path = require('path');
const CleanCSS = require('clean-css');
const crypto = require('crypto');
const mkdirp = require('mkdirp');
const assetdir = path.resolve(__dirname, '..', 'dist', 'public', 'assets');
const builddir = path.resolve(__dirname, '..', 'dist');
@ -57,7 +56,7 @@ async function minifyCss() {
async function doMinifyCss() {
try {
mkdirp.sync(assetdir);
fs.mkdirSync(assetdir, { recursive: true });
await minifyCss();
} catch (e) {
console.log('ERROR while minifying css', e);

Loading…
Cancel
Save