From 371cc0b817cb9cdf4958277dbb02f0e776ae25e5 Mon Sep 17 00:00:00 2001 From: Wendell Adriel Date: Wed, 1 Apr 2026 16:29:00 +0100 Subject: [PATCH] Remove axios and enable ignore-scripts (#6778) * Remove axios and enable ignore-scripts * Removing empty comment * Apply fixes from StyleCI * Remove bootstrap.js file and add empty comment on app.js --------- Co-authored-by: StyleCI Bot Co-authored-by: Pushpak Chhajed --- .npmrc | 1 + package.json | 1 - resources/js/app.js | 2 +- resources/js/bootstrap.js | 4 ---- 4 files changed, 2 insertions(+), 6 deletions(-) create mode 100644 .npmrc delete mode 100644 resources/js/bootstrap.js diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..97b895e2 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +ignore-scripts=true diff --git a/package.json b/package.json index d2456d57..296ac3f0 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,6 @@ }, "devDependencies": { "@tailwindcss/vite": "^4.0.0", - "axios": ">=1.11.0 <=1.14.0", "concurrently": "^9.0.1", "laravel-vite-plugin": "^3.0.0", "tailwindcss": "^4.0.0", diff --git a/resources/js/app.js b/resources/js/app.js index e59d6a0a..8337712e 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -1 +1 @@ -import './bootstrap'; +// diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js deleted file mode 100644 index 5f1390b0..00000000 --- a/resources/js/bootstrap.js +++ /dev/null @@ -1,4 +0,0 @@ -import axios from 'axios'; -window.axios = axios; - -window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';