From 92fb2be27c825791599d3e3ea18403e737ac887d Mon Sep 17 00:00:00 2001 From: Addison Date: Tue, 28 Nov 2023 23:44:07 +0000 Subject: [PATCH] Rename webpack config files --- .eslintignore | 4 +--- package.json | 14 +++++++------- webpack.cli.js => webpack.cli.config.js | 0 webpack.main.js => webpack.main.config.js | 0 webpack.renderer.js => webpack.renderer.config.js | 0 5 files changed, 8 insertions(+), 10 deletions(-) rename webpack.cli.js => webpack.cli.config.js (100%) rename webpack.main.js => webpack.main.config.js (100%) rename webpack.renderer.js => webpack.renderer.config.js (100%) diff --git a/.eslintignore b/.eslintignore index cbcaffc1..0cb28211 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,9 +1,7 @@ dist build build-cli -webpack.cli.js -webpack.main.js -webpack.renderer.js +**/webpack**.config.js **/node_modules diff --git a/package.json b/package.json index 5ae5445b..c3b5561c 100644 --- a/package.json +++ b/package.json @@ -31,14 +31,14 @@ "lint": "eslint . && prettier --check .", "lint:fix": "eslint . --fix", "build": "concurrently -n Main,Rend -c yellow,cyan \"npm run build:main\" \"npm run build:renderer\"", - "build:main": "webpack --config webpack.main.js", - "build:renderer": "webpack --config webpack.renderer.js", - "build:renderer:watch": "webpack --config webpack.renderer.js --watch", + "build:main": "webpack --config webpack.main.config.js", + "build:renderer": "webpack --config webpack.renderer.config.js", + "build:renderer:watch": "webpack --config webpack.renderer.config.js --watch", "build:dist": "npm run reset && npm run rebuild && npm run build", - "build:cli": "webpack --config webpack.cli.js", - "build:cli:watch": "webpack --config webpack.cli.js --watch", - "build:cli:prod": "cross-env NODE_ENV=production webpack --config webpack.cli.js", - "build:cli:prod:watch": "cross-env NODE_ENV=production webpack --config webpack.cli.js --watch", + "build:cli": "webpack --config webpack.cli.config.js", + "build:cli:watch": "webpack --config webpack.cli.config.js --watch", + "build:cli:prod": "cross-env NODE_ENV=production webpack --config webpack.cli.config.js", + "build:cli:prod:watch": "cross-env NODE_ENV=production webpack --config webpack.cli.config.js --watch", "electron": "npm run build:main && concurrently -k -n Main,Rend -c yellow,cyan \"electron --inspect=5858 ./build --watch\" \"npm run build:renderer:watch\"", "electron:ignore": "npm run build:main && concurrently -k -n Main,Rend -c yellow,cyan \"electron --inspect=5858 --ignore-certificate-errors ./build --watch\" \"npm run build:renderer:watch\"", "clean:dist": "rimraf ./dist/*", diff --git a/webpack.cli.js b/webpack.cli.config.js similarity index 100% rename from webpack.cli.js rename to webpack.cli.config.js diff --git a/webpack.main.js b/webpack.main.config.js similarity index 100% rename from webpack.main.js rename to webpack.main.config.js diff --git a/webpack.renderer.js b/webpack.renderer.config.js similarity index 100% rename from webpack.renderer.js rename to webpack.renderer.config.js