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

Building for production and no version number update in assets #11566

Closed
7 tasks done
martio opened this issue Jan 3, 2023 · 2 comments
Closed
7 tasks done

Building for production and no version number update in assets #11566

martio opened this issue Jan 3, 2023 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@martio
Copy link

martio commented Jan 3, 2023

Describe the bug

pnpm version: 7.18.2

When I build an app while deploying to netlify it doesn't update the version number in the files. After implementing a new version of the application, files in browsers do not refresh. Manually clearing the cache in the browser helps.

<script type="module" crossorigin src="/assets/index.66d329ed.js"></script><link rel="stylesheet" href="/assets/index.d4c34908.css">

Build command: pnpm run build

PNPM version: 7.18.2
Vite version: 3.1.3
Vue version: 3.2.40

Configuration:

export default defineConfig({
  build: {
    minify: true,
    sourcemap: true,
    chunkSizeWarningLimit: 1000,
  },
  (...)
});

Reproduction

pnpm run build

Steps to reproduce

pnpm run build

System Info

System:
    OS: macOS 13.1
    CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
    Memory: 1.26 GB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 19.3.0 - /usr/local/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 9.2.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 108.0.5359.124
    Firefox: 108.0.1
    Safari: 16.2
  npmPackages:
    @vitejs/plugin-vue: ^3.0.3 => 3.1.0 
    vite: ^3.0.9 => 3.1.3

Used Package Manager

pnpm

Logs

No response

Validations

@sapphi-red
Copy link
Member

This is fixed by #11475 and released in 4.0.4+.

@sapphi-red sapphi-red added duplicate This issue or pull request already exists and removed pending triage labels Jan 3, 2023
@sapphi-red
Copy link
Member

Duplicate of #9583

@sapphi-red sapphi-red marked this as a duplicate of #9583 Jan 3, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants