ultimate-jekyll-manager 0.0.54 → 0.0.55
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/gulp/tasks/webpack.js +15 -1
- package/package.json +1 -1
|
@@ -18,6 +18,10 @@ const config = Manager.getConfig('project');
|
|
|
18
18
|
const rootPathPackage = Manager.getRootPath('main');
|
|
19
19
|
const rootPathProject = Manager.getRootPath('project');
|
|
20
20
|
|
|
21
|
+
// Debug: Log the root paths to understand the issue
|
|
22
|
+
console.log('[Webpack Debug] rootPathPackage:', rootPathPackage);
|
|
23
|
+
console.log('[Webpack Debug] rootPathProject:', rootPathProject);
|
|
24
|
+
|
|
21
25
|
// Settings
|
|
22
26
|
const inputMain = [
|
|
23
27
|
// Project entry point
|
|
@@ -150,17 +154,27 @@ const settings = {
|
|
|
150
154
|
filename: (data) => {
|
|
151
155
|
const name = data.chunk.name;
|
|
152
156
|
|
|
157
|
+
// Debug logging
|
|
158
|
+
console.log('[Webpack filename] Processing chunk:', name);
|
|
159
|
+
console.log('[Webpack filename] Should have stable name?', shouldHaveStableName(name));
|
|
160
|
+
console.log('[Webpack filename] Environment mode:', settings.mode);
|
|
161
|
+
console.log('[Webpack filename] Build mode?', Manager.isBuildMode());
|
|
162
|
+
console.log('[Webpack filename] Act like production?', Manager.actLikeProduction());
|
|
163
|
+
|
|
153
164
|
// Check for special output paths
|
|
154
165
|
if (bundleNaming.specialPaths[name]) {
|
|
166
|
+
console.log('[Webpack filename] Using special path:', bundleNaming.specialPaths[name]);
|
|
155
167
|
return bundleNaming.specialPaths[name];
|
|
156
168
|
}
|
|
157
169
|
|
|
158
170
|
// Check if this bundle should have a stable name
|
|
159
171
|
if (shouldHaveStableName(name)) {
|
|
172
|
+
console.log('[Webpack filename] Using stable name for:', name);
|
|
160
173
|
return '[name].bundle.js';
|
|
161
174
|
}
|
|
162
175
|
|
|
163
176
|
// Everything else gets hashed
|
|
177
|
+
console.log('[Webpack filename] Using hashed name for:', name);
|
|
164
178
|
return '[name].bundle.[contenthash].js';
|
|
165
179
|
},
|
|
166
180
|
},
|
|
@@ -374,7 +388,7 @@ function updateEntryPoints(inputArray) {
|
|
|
374
388
|
if (name.includes('pages/')) {
|
|
375
389
|
// Pages: add .main or .project suffix
|
|
376
390
|
name += isProject ? '.project' : '.main';
|
|
377
|
-
} else if (name.includes('modules/')) {
|
|
391
|
+
// } else if (name.includes('modules/')) {
|
|
378
392
|
// Modules: keep the full path structure for clarity
|
|
379
393
|
// This ensures modules/redirect becomes modules/redirect
|
|
380
394
|
// and modules/analytics/tracker becomes modules/analytics/tracker
|