From 0abb9c29c317cc38fb32b5b31da8885a16a40457 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Gonz=C3=A1lez?= Date: Wed, 24 Apr 2019 02:44:48 -0500 Subject: [PATCH] Fix directory cleanup on build - The `rm` command accepts multiple arguments, and most terminal emulators don't support multiple matching between curly brackets. - The `index.blade.php` file must be regenerated each time the app builds, this ensures that we are not trying to use old code on the PWA. --- frontend/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index fa47a9c..b4b368b 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "serve": "vue-cli-service serve", - "build": "rm -rf ../public/{js,css,img} && vue-cli-service build --no-clean", + "build": "rm -rf ../public/js ../public/css ../public/img ../public/precache-manifest.*.js ../resources/views/index.blade.php && vue-cli-service build --no-clean", "lint": "vue-cli-service lint" }, "dependencies": {