We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54b2d0e commit 491b977Copy full SHA for 491b977
packages/incept/src/webpack/index.ts
@@ -36,9 +36,9 @@ export default class WithWebpack {
36
const buildPath = path.join(this._application.buildPath, 'static');
37
38
const chunkNamer = (fileinfo: Record<string, any>) => {
39
- const hash = fileinfo.chunk.hash;
40
- const [ name, extension ] = fileinfo.chunk.id.split('_').slice(-2);
41
- return path.join('/chunks', `${name}.${hash}.${extension}`);
+ const name = fileinfo.chunk.name.replace(/_js$/, '').split('_').pop();
+ const hash = fileinfo.chunk.renderedHash;
+ return path.join('chunks', `${name}.${hash}.js`);
42
};
43
44
const loadableConfig = {
packages/incept/templates/App.js
packages/incept/templates/Layout.js
packages/incept/templates/entry.js
0 commit comments