From ea0e21114eb92a9be9cd307c7fedce16d7f25556 Mon Sep 17 00:00:00 2001 From: Tixie Date: Thu, 14 Oct 2021 21:05:08 +0200 Subject: [PATCH] fix: Copy static files to build directory --- .parcelrc | 4 ++++ package-lock.json | 38 +++++--------------------------------- package.json | 5 ++--- 3 files changed, 11 insertions(+), 36 deletions(-) create mode 100644 .parcelrc diff --git a/.parcelrc b/.parcelrc new file mode 100644 index 0000000..55a9ca4 --- /dev/null +++ b/.parcelrc @@ -0,0 +1,4 @@ +{ + "extends": ["@parcel/config-default"], + "reporters": ["...", "parcel-reporter-static-files-copy"] +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 5f57c2d..d189685 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4728,14 +4728,13 @@ "v8-compile-cache": "^2.0.0" } }, - "parcel-plugin-static-files-copy": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/parcel-plugin-static-files-copy/-/parcel-plugin-static-files-copy-2.6.0.tgz", - "integrity": "sha512-k3YxdnEQWo1aMfCeBfxgUNJWuUE0O730EGiGBcmWEUOto7f1jM/8oxBKXkVZsXDCO1o00dw5X7CsT+yF0JY4qA==", + "parcel-reporter-static-files-copy": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/parcel-reporter-static-files-copy/-/parcel-reporter-static-files-copy-1.3.0.tgz", + "integrity": "sha512-kToOSXRcIHD2Jdx2mKMgHoHLilm8OanP4DeCpOApXpAwy01bNR3/7nIb9ZDg4HdxKWPLML1452vOctz0LjeTuw==", "dev": true, "requires": { - "minimatch": "3.0.4", - "path": "0.12.7" + "@parcel/plugin": "^2.0.0-beta.1" } }, "parent-module": { @@ -4779,33 +4778,6 @@ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" }, - "path": { - "version": "0.12.7", - "resolved": "https://registry.npmjs.org/path/-/path-0.12.7.tgz", - "integrity": "sha1-1NwqUGxM4hl+tIHr/NWzbAFAsQ8=", - "dev": true, - "requires": { - "process": "^0.11.1", - "util": "^0.10.3" - }, - "dependencies": { - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true - }, - "util": { - "version": "0.10.4", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", - "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", - "dev": true, - "requires": { - "inherits": "2.0.3" - } - } - } - }, "path-browserify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", diff --git a/package.json b/package.json index 9675f1a..6f93215 100644 --- a/package.json +++ b/package.json @@ -33,12 +33,11 @@ "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^5.1.0", "eslint-plugin-vue": "^7.19.1", - "parcel-plugin-static-files-copy": "^2.4.3", + "parcel-reporter-static-files-copy": "^1.3.0", "vue-hot-reload-api": "^2.3.4", "vue-template-compiler": "^2.6.10" }, "staticFiles": { - "staticPath": "public", - "watcherGlob": "**" + "staticPath": "public" } }