Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

151
Views
Generate a chunk name without hash

For my specific condition I don't want to generate hash in file name for some specific files. I tried something like this, but its removing hash from .css files but not for the .js files.

  build: {
    target: 'es2020',
    rollupOptions: {
      input: {
        main: fileURLToPath(new URL('./index.html', import.meta.url)),
        myapp: fileURLToPath(new URL('./src/my-app.ts', import.meta.url))
      },
      output: {
        assetFileNames: (assetInfo) => {
          if (assetInfo.name?.toLocaleLowerCase().includes('myapp')) {
            return 'assets/[name][extname]';            
          }
          return 'assets/[name]-[hash][extname]';
        },
      },
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!