@razerspine/webpack-core 1.1.7 → 1.2.0

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/CHANGELOG.md CHANGED
@@ -8,6 +8,17 @@ required to ensure correct behavior in both development and production modes.
8
8
 
9
9
  ---
10
10
 
11
+ ## [1.2.0] - 2026-02-12
12
+
13
+ ### Changed
14
+ - **Enhanced File Watching:** Updated `createDevConfig` to watch all files recursively in the `src/` directory (`src/**/*`). This ensures `webpack-dev-server` reacts to changes in any file type (images, JSON, new assets) without manual configuration.
15
+ - **Improved Dev Routing:** Configured `historyApiFallback` in development mode.
16
+ - Set `disableDotRule: true` to allow dots in URLs (useful for complex routing).
17
+ - Added a global rewrite rule to serve `/404.html` for any non-existent paths, enabling better local testing of 404 error pages and SPA-like navigation.
18
+ - **DevServer Optimization:** Set `hot: false` and `liveReload: true` as a stable default for multi-page template builds to ensure consistent page refreshes upon file changes.
19
+
20
+ ---
21
+
11
22
  ## [1.1.7] - 2026-02-11
12
23
 
13
24
  ### Changed
@@ -17,6 +28,7 @@ required to ensure correct behavior in both development and production modes.
17
28
  ### Stable Release Note
18
29
  - **Important:** Versions prior to 1.1.6 were part of a stabilization phase and are not recommended for production use. This release marks the stable baseline.
19
30
 
31
+ ---
20
32
 
21
33
  ## [1.1.6] - 2026-02-05
22
34
 
@@ -4,19 +4,21 @@ exports.createDevConfig = createDevConfig;
4
4
  function createDevConfig(baseConfig) {
5
5
  return {
6
6
  ...baseConfig,
7
- /**
8
- * Prevent webpack-dev-server from injecting ./src entry
9
- */
10
- entry: () => ({}),
11
- devtool: 'eval-source-map',
7
+ devtool: 'source-map',
12
8
  devServer: {
13
- static: {
14
- directory: 'public',
15
- },
16
- hot: true,
17
- open: true,
9
+ hot: false,
10
+ liveReload: true,
18
11
  compress: true,
19
12
  port: 8080,
20
- },
13
+ watchFiles: [
14
+ 'src/**/*',
15
+ ],
16
+ historyApiFallback: {
17
+ disableDotRule: true,
18
+ rewrites: [
19
+ { from: /./, to: '/404.html' }
20
+ ]
21
+ }
22
+ }
21
23
  };
22
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@razerspine/webpack-core",
3
- "version": "1.1.7",
3
+ "version": "1.2.0",
4
4
  "description": "Core webpack config and loaders for starter templates",
5
5
  "keywords": [
6
6
  "webpack",