@stanlemon/webdev 0.1.31 → 0.1.32

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stanlemon/webdev",
3
- "version": "0.1.31",
3
+ "version": "0.1.32",
4
4
  "description": "My typical web development setup, but without all the copy and paste.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -46,8 +46,6 @@
46
46
  "less": "^4.1.2",
47
47
  "less-loader": "^10.2.0",
48
48
  "prettier": "^2.6.2",
49
- "react": "^18.0.0",
50
- "react-dom": "^18.0.0",
51
49
  "react-refresh": "^0.12.0",
52
50
  "style-loader": "^3.3.1",
53
51
  "typescript": "^4.6.3",
@@ -55,5 +53,14 @@
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.1",
59
+ "react": "^18.0.0",
60
+ "react-dom": "^18.0.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: {