Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assetFileNames pattern works only for css #4354

Closed
6 tasks done
Alexufo opened this issue Jul 22, 2021 · 1 comment
Closed
6 tasks done

assetFileNames pattern works only for css #4354

Alexufo opened this issue Jul 22, 2021 · 1 comment

Comments

@Alexufo
Copy link

Alexufo commented Jul 22, 2021

Describe the bug

standard instalation.
I want to remove all hash from all names in npm run build
I use assetFileNames.

But I get it working only with css file. Fonts and svg files still have hash names.

image

Reproduction

  1. create default installation.

  2. set config

     build: {
       cssCodeSplit: false,
       minify: false,
       rollupOptions: {
         output: {
           entryFileNames: "[name].js",
           assetFileNames: '[name][extname]'
    
         },
       }
     }
    
  3. npm run build

System Info

windows 10

Used Package Manager

npm

Logs

No response

Validations

@Alexufo Alexufo changed the title assetFileNames pattern works only for css a assetFileNames pattern works only for css Jul 22, 2021
@y1d7ng
Copy link
Contributor

y1d7ng commented Aug 9, 2021

fixed by this pr #4352, #2944 (comment)
v2.5.0-beta.0 and later versions work fine.

@y1d7ng y1d7ng closed this as completed Aug 9, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Aug 24, 2021
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