@stanlemon/webdev 0.1.31 → 0.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.html +1 -1
- package/dist/{main.6a79c17ed660f2b389e6.js → main.14ff739abe667bad4d91.js} +1 -1
- package/dist/react.02ba2699f9d8f6252a54.js +102 -0
- package/dist/{vendors.7c237aa4917b41a23780.js → vendors.c2a57e100e1c3fd28d71.js} +58 -28
- package/package.json +18 -11
- package/webpack.config.js +2 -0
- package/dist/react.ecb98e70ee6f572ad49a.js +0 -102
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stanlemon/webdev",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.34",
|
|
4
4
|
"description": "My typical web development setup, but without all the copy and paste.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"lint:format": "eslint --fix --ext js,jsx,ts,tsx ./"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@babel/core": "^7.17.
|
|
24
|
-
"@babel/preset-env": "^7.
|
|
23
|
+
"@babel/core": "^7.17.10",
|
|
24
|
+
"@babel/preset-env": "^7.17.10",
|
|
25
25
|
"@babel/preset-react": "^7.16.7",
|
|
26
26
|
"@babel/preset-typescript": "^7.16.7",
|
|
27
27
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.5",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"@testing-library/dom": "^8.13.0",
|
|
30
30
|
"@testing-library/jest-dom": "^5.16.4",
|
|
31
31
|
"@testing-library/react": "^13.1.1",
|
|
32
|
-
"@testing-library/user-event": "^14.1.
|
|
32
|
+
"@testing-library/user-event": "^14.1.1",
|
|
33
33
|
"@types/jest": "^27.4.1",
|
|
34
|
-
"@types/react": "^18.0.
|
|
35
|
-
"@types/react-dom": "^18.0.
|
|
34
|
+
"@types/react": "^18.0.8",
|
|
35
|
+
"@types/react-dom": "^18.0.3",
|
|
36
36
|
"@types/webpack": "^5.28.0",
|
|
37
37
|
"@types/webpack-env": "^1.16.4",
|
|
38
38
|
"babel-jest": "^27.5.1",
|
|
39
|
-
"babel-loader": "^8.2.
|
|
39
|
+
"babel-loader": "^8.2.5",
|
|
40
40
|
"clean-webpack-plugin": "^4.0.0",
|
|
41
41
|
"css-loader": "^6.7.1",
|
|
42
42
|
"dotenv": "^16.0.0",
|
|
@@ -46,14 +46,21 @@
|
|
|
46
46
|
"less": "^4.1.2",
|
|
47
47
|
"less-loader": "^10.2.0",
|
|
48
48
|
"prettier": "^2.6.2",
|
|
49
|
-
"react": "^
|
|
50
|
-
"react-dom": "^18.0.0",
|
|
51
|
-
"react-refresh": "^0.12.0",
|
|
49
|
+
"react-refresh": "^0.13.0",
|
|
52
50
|
"style-loader": "^3.3.1",
|
|
53
|
-
"typescript": "^4.6.
|
|
51
|
+
"typescript": "^4.6.4",
|
|
54
52
|
"webpack": "^5.72.0",
|
|
55
53
|
"webpack-bundle-analyzer": "^4.5.0",
|
|
56
54
|
"webpack-cli": "^4.9.2",
|
|
57
55
|
"webpack-dev-server": "^4.8.1"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@types/react-dom": "^18.0.3",
|
|
59
|
+
"react": "^18.1.0",
|
|
60
|
+
"react-dom": "^18.1.0"
|
|
61
|
+
},
|
|
62
|
+
"peerDependencies": {
|
|
63
|
+
"react": ">=17.0.0",
|
|
64
|
+
"react-dom": ">=17.0.0"
|
|
58
65
|
}
|
|
59
66
|
}
|
package/webpack.config.js
CHANGED
|
@@ -22,6 +22,7 @@ const WEBDEV_HTML = process.env.WEBDEV_HTML ?? "./index.html";
|
|
|
22
22
|
// Proxy path's can be designated as path@host, separated by semi-colons
|
|
23
23
|
// For example /api@http://localhost:3000;/auth@http://localhost:4000
|
|
24
24
|
const WEBDEV_PROXY = process.env.WEBDEV_PROXY ?? "";
|
|
25
|
+
const WEBPACK_PUBLIC_PATH = process.env.WEBPACK_PUBLIC_PATH ?? "/";
|
|
25
26
|
const NODE_ENV = process.env.NODE_ENV ?? "development";
|
|
26
27
|
|
|
27
28
|
const proxy = {};
|
|
@@ -42,6 +43,7 @@ export default {
|
|
|
42
43
|
output: {
|
|
43
44
|
filename: "[name].[contenthash].js",
|
|
44
45
|
path: path.resolve("./", "dist"),
|
|
46
|
+
publicPath: WEBPACK_PUBLIC_PATH,
|
|
45
47
|
},
|
|
46
48
|
devtool: isDevelopment ? "eval-source-map" : "source-map",
|
|
47
49
|
devServer: {
|