Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

wrong dynamic generation file name in bundleRouter.generateSplitFileName #1963

Open
Kend0r opened this issue Nov 20, 2020 · 0 comments
Open

Comments

@Kend0r
Copy link
Contributor

Kend0r commented Nov 20, 2020

Hello

when I make a build on Linux, all dynamic js files are created with the same name, (dynamic/index.js, i dont want the hash)
when I build on Windows, no problem my files came with route name in the prefix (dynamic/src-page-home-index.js)
I figure out the problm was in src/bundle/bundleRouter.ts in generateSplitFileName function
I make a PR for fix it if you are agree with my analysis.

here my configuration :

fuse.runProd({
        uglify: true,
        bundles: {
            app: "app.js",
            vendor: "vendor.js",
            styles: {
                path: "styles/styles.css",
                codeSplitting: {
                    path:"dynamic/$name.css"
                }                            
            },
            codeSplitting: {
                path:"dynamic/$name.js"
            },

        }
})

thank you

@Kend0r Kend0r changed the title wrong dynamic generation file generateSplitFileName wrong dynamic generation file name in bundleRouter.generateSplitFileName Nov 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants