We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d10b9a9 commit 29b160aCopy full SHA for 29b160a
create/templates/core/cordova-plain-build/build.mjs
@@ -1,4 +1,4 @@
1
-import rm from 'rimraf';
+import { rimraf } from 'rimraf';
2
import cpy from 'cpy';
3
import fs from 'fs';
4
import path from 'path';
@@ -21,7 +21,7 @@ function removeWebBlocks(content) {
21
.replace(/([\n]{2,})/g, '\n');
22
}
23
24
-rm('./cordova/www').then(() => {
+rimraf('./cordova/www').then(() => {
25
fs.mkdirSync(path.resolve('cordova', 'www'));
26
cpy(['./www/**/*.*'], 'cordova/www', {
27
parents: true,
0 commit comments