From d451a4ee9dce98446e900d68d3b0336eea2ec44f Mon Sep 17 00:00:00 2001 From: Guilherme Pires Date: Fri, 22 Dec 2023 15:36:39 -0300 Subject: [PATCH] Removing many unused css related code --- package-lock.json | 91 ----------------------------------------------- package.json | 12 ++----- src/index.html | 2 -- webpack.config.js | 7 ---- 4 files changed, 3 insertions(+), 109 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4639626..e8abd66 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,6 @@ "babel-loader": "^9.1.3", "babel-preset-env": "^1.7.0", "babel-preset-react": "^6.24.1", - "copy-webpack-plugin": "^11.0.0", "css-loader": "^6.8.1", "daisyui": "^4.4.20", "eslint": "^8.56.0", @@ -6107,61 +6106,6 @@ "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", "dev": true }, - "node_modules/copy-webpack-plugin": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-11.0.0.tgz", - "integrity": "sha512-fX2MWpamkW0hZxMEg0+mYnA40LTosOSa5TqZ9GYIBzyJa9C3QUaMPSE2xAi/buNr8u89SfD9wHSQVBzrRa/SOQ==", - "dev": true, - "dependencies": { - "fast-glob": "^3.2.11", - "glob-parent": "^6.0.1", - "globby": "^13.1.1", - "normalize-path": "^3.0.0", - "schema-utils": "^4.0.0", - "serialize-javascript": "^6.0.0" - }, - "engines": { - "node": ">= 14.15.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.1.0" - } - }, - "node_modules/copy-webpack-plugin/node_modules/globby": { - "version": "13.2.2", - "resolved": "https://registry.npmjs.org/globby/-/globby-13.2.2.tgz", - "integrity": "sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w==", - "dev": true, - "dependencies": { - "dir-glob": "^3.0.1", - "fast-glob": "^3.3.0", - "ignore": "^5.2.4", - "merge2": "^1.4.1", - "slash": "^4.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/copy-webpack-plugin/node_modules/slash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", - "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/core-js": { "version": "2.6.12", "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz", @@ -20347,41 +20291,6 @@ "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", "dev": true }, - "copy-webpack-plugin": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-11.0.0.tgz", - "integrity": "sha512-fX2MWpamkW0hZxMEg0+mYnA40LTosOSa5TqZ9GYIBzyJa9C3QUaMPSE2xAi/buNr8u89SfD9wHSQVBzrRa/SOQ==", - "dev": true, - "requires": { - "fast-glob": "^3.2.11", - "glob-parent": "^6.0.1", - "globby": "^13.1.1", - "normalize-path": "^3.0.0", - "schema-utils": "^4.0.0", - "serialize-javascript": "^6.0.0" - }, - "dependencies": { - "globby": { - "version": "13.2.2", - "resolved": "https://registry.npmjs.org/globby/-/globby-13.2.2.tgz", - "integrity": "sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w==", - "dev": true, - "requires": { - "dir-glob": "^3.0.1", - "fast-glob": "^3.3.0", - "ignore": "^5.2.4", - "merge2": "^1.4.1", - "slash": "^4.0.0" - } - }, - "slash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", - "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", - "dev": true - } - } - }, "core-js": { "version": "2.6.12", "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz", diff --git a/package.json b/package.json index 634b8a7..a355fd8 100644 --- a/package.json +++ b/package.json @@ -4,15 +4,10 @@ "version": "0.1.0", "private": true, "scripts": { - "deploy": "run-s build gh-pages:deploy", - "gh-pages:deploy": "gh-pages -d dist", - "dev": "run-s tailwind webpack:dev", - "prod": "run-s build start", - "build": "run-s tailwind webpack:build", + "dev": "webpack serve --mode=development", + "build": "webpack --mode=production", "start": "serve dist", - "webpack:dev": "webpack serve --mode=development", - "webpack:build": "webpack --mode=production", - "tailwind": "tailwindcss build src/app.css -o public/app.css" + "prod": "run-s build start" }, "dependencies": { "react": "18.2.0", @@ -35,7 +30,6 @@ "babel-loader": "^9.1.3", "babel-preset-env": "^1.7.0", "babel-preset-react": "^6.24.1", - "copy-webpack-plugin": "^11.0.0", "css-loader": "^6.8.1", "daisyui": "^4.4.20", "eslint": "^8.56.0", diff --git a/src/index.html b/src/index.html index 2a36087..243bb81 100644 --- a/src/index.html +++ b/src/index.html @@ -4,11 +4,9 @@ -
- diff --git a/webpack.config.js b/webpack.config.js index ed9fe32..0e28e2a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -2,8 +2,6 @@ let path = require('path') // eslint-disable-next-line @typescript-eslint/no-var-requires, no-undef let HtmlWebpackPlugin = require('html-webpack-plugin') -// eslint-disable-next-line @typescript-eslint/no-var-requires, no-undef -let CopyPlugin = require('copy-webpack-plugin') // eslint-disable-next-line no-undef module.exports = { @@ -38,10 +36,5 @@ module.exports = { new HtmlWebpackPlugin({ template: 'src/index.html' }) - // new CopyPlugin({ - // patterns: [ - // { from: 'public', to: '' } - // ] - // }) ] }