Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save axieum/4a3a54c54a8df729c81bd66c54091db5 to your computer and use it in GitHub Desktop.
Save axieum/4a3a54c54a8df729c81bd66c54091db5 to your computer and use it in GitHub Desktop.
Removes webpack, js, css, etc. from a fresh Laravel 8 installation
Index: resources/js/app.js
===================================================================
diff --git a/resources/js/app.js b/resources/js/app.js
deleted file mode 100644
--- a/resources/js/app.js (revision 6a9f2ca80372ca963fb1e17dbd6478017addf7d3)
+++ /dev/null (revision 6a9f2ca80372ca963fb1e17dbd6478017addf7d3)
@@ -1,1 +0,0 @@
-require('./bootstrap');
Index: resources/js/bootstrap.js
===================================================================
diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js
deleted file mode 100644
--- a/resources/js/bootstrap.js (revision 6a9f2ca80372ca963fb1e17dbd6478017addf7d3)
+++ /dev/null (revision 6a9f2ca80372ca963fb1e17dbd6478017addf7d3)
@@ -1,28 +0,0 @@
-window._ = require('lodash');
-
-/**
- * We'll load the axios HTTP library which allows us to easily issue requests
- * to our Laravel back-end. This library automatically handles sending the
- * CSRF token as a header based on the value of the "XSRF" token cookie.
- */
-
-window.axios = require('axios');
-
-window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
-
-/**
- * Echo exposes an expressive API for subscribing to channels and listening
- * for events that are broadcast by Laravel. Echo and event broadcasting
- * allows your team to easily build robust real-time web applications.
- */
-
-// import Echo from 'laravel-echo';
-
-// window.Pusher = require('pusher-js');
-
-// window.Echo = new Echo({
-// broadcaster: 'pusher',
-// key: process.env.MIX_PUSHER_APP_KEY,
-// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
-// forceTLS: true
-// });
Index: package.json
===================================================================
diff --git a/package.json b/package.json
deleted file mode 100644
--- a/package.json (revision 6a9f2ca80372ca963fb1e17dbd6478017addf7d3)
+++ /dev/null (revision 6a9f2ca80372ca963fb1e17dbd6478017addf7d3)
@@ -1,18 +0,0 @@
-{
- "private": true,
- "scripts": {
- "dev": "npm run development",
- "development": "mix",
- "watch": "mix watch",
- "watch-poll": "mix watch -- --watch-options-poll=1000",
- "hot": "mix watch --hot",
- "prod": "npm run production",
- "production": "mix --production"
- },
- "devDependencies": {
- "axios": "^0.21",
- "laravel-mix": "^6.0.6",
- "lodash": "^4.17.19",
- "postcss": "^8.1.14"
- }
-}
Index: webpack.mix.js
===================================================================
diff --git a/webpack.mix.js b/webpack.mix.js
deleted file mode 100644
--- a/webpack.mix.js (revision 6a9f2ca80372ca963fb1e17dbd6478017addf7d3)
+++ /dev/null (revision 6a9f2ca80372ca963fb1e17dbd6478017addf7d3)
@@ -1,17 +0,0 @@
-const mix = require('laravel-mix');
-
-/*
- |--------------------------------------------------------------------------
- | Mix Asset Management
- |--------------------------------------------------------------------------
- |
- | Mix provides a clean, fluent API for defining some Webpack build steps
- | for your Laravel applications. By default, we are compiling the CSS
- | file for the application as well as bundling up all the JS files.
- |
- */
-
-mix.js('resources/js/app.js', 'public/js')
- .postCss('resources/css/app.css', 'public/css', [
- //
- ]);
Index: .gitignore
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/.gitignore b/.gitignore
--- a/.gitignore (revision 6a9f2ca80372ca963fb1e17dbd6478017addf7d3)
+++ b/.gitignore (date 1609913481680)
@@ -1,5 +1,4 @@
/.idea
-/node_modules
/public/hot
/public/storage
/storage/*.key
@@ -10,5 +9,3 @@
docker-compose.override.yml
Homestead.json
Homestead.yaml
-npm-debug.log
-yarn-error.log
Index: .gitattributes
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/.gitattributes b/.gitattributes
--- a/.gitattributes (revision 6a9f2ca80372ca963fb1e17dbd6478017addf7d3)
+++ b/.gitattributes (date 1609913416100)
@@ -1,5 +1,2 @@
* text=auto
-*.css linguist-vendored
-*.scss linguist-vendored
-*.js linguist-vendored
CHANGELOG.md export-ignore
Index: .styleci.yml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/.styleci.yml b/.styleci.yml
--- a/.styleci.yml (revision 6a9f2ca80372ca963fb1e17dbd6478017addf7d3)
+++ b/.styleci.yml (date 1609913464890)
@@ -6,8 +6,3 @@
not-name:
- index.php
- server.php
-js:
- finder:
- not-name:
- - webpack.mix.js
-css: true
diff --git a/resources/css/app.css b/resources/css/app.css
deleted file mode 100644
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment