refactor: Refactor webpack config and asset handling

- Improve webpack performance and configuration
- Delete unnecessary CSS and binary files
- Adjust ESLint ignored files list
- Update package.json with webpack mode for dev and prod scripts
- Move app.css to app.js in master.blade.php
This commit is contained in:
Jonny Barnes 2023-05-08 21:56:05 +01:00
parent 8a56827b13
commit 57bd41febf
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
9 changed files with 39 additions and 44 deletions

View file

@ -16,13 +16,13 @@
"cssnano": "^6.0.1",
"eslint": "^8.39.0",
"eslint-webpack-plugin": "^4.0.1",
"mini-css-extract-plugin": "^2.7.5",
"postcss": "^8.4.23",
"postcss-combine-duplicated-selectors": "^10.0.2",
"postcss-combine-media-query": "^1.0.1",
"postcss-import": "^15.1.0",
"postcss-loader": "^7.3.0",
"postcss-nesting": "^11.2.2",
"style-loader": "^3.3.2",
"stylelint": "^15.6.1",
"stylelint-config-standard": "^33.0.0",
"stylelint-webpack-plugin": "^4.1.1",
@ -30,8 +30,8 @@
"webpack-cli": "^5.0.2"
},
"scripts": {
"dev": "webpack",
"prod": "NODE_ENV=production webpack"
"dev": "webpack --mode=development",
"prod": "webpack --mode=production"
},
"browserslist": [
"last 2 versions",