Skip to content

Image file name has duplicate dots in extension due to #6771 #6825

Closed
@TwiN

Description

@TwiN

Version

5.0.0-beta.7

Reproduction link

github.com

Environment info

  System:
    OS: Windows 10 10.0.19043
    CPU: (8) x64 Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
  Binaries:
    Node: 14.17.6 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 7.8.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 95.0.4638.69
    Edge: Spartan (44.19041.1266.0), Chromium (95.0.1020.44)
  npmPackages:
    @vue/babel-helper-vue-jsx-merge-props:  1.2.1
    @vue/babel-helper-vue-transform-on:  1.0.2
    @vue/babel-plugin-jsx:  1.1.1
    @vue/babel-plugin-transform-vue-jsx:  1.2.1
    @vue/babel-preset-app:  5.0.0-rc.0
    @vue/babel-preset-jsx:  1.2.4
    @vue/babel-sugar-composition-api-inject-h:  1.2.1
    @vue/babel-sugar-composition-api-render-instance:  1.2.4
    @vue/babel-sugar-functional-vue:  1.2.2
    @vue/babel-sugar-inject-h:  1.2.2
    @vue/babel-sugar-v-model:  1.2.3
    @vue/babel-sugar-v-on:  1.2.3
    @vue/cli-overlay:  5.0.0-rc.0
    @vue/cli-plugin-babel: 5.0.0-beta.7 => 5.0.0-beta.7
    @vue/cli-plugin-router:  5.0.0-rc.0
    @vue/cli-plugin-vuex:  5.0.0-rc.0
    @vue/cli-service: 5.0.0-beta.7 => 5.0.0-beta.7
    @vue/cli-shared-utils:  5.0.0-rc.0
    @vue/component-compiler-utils:  3.3.0
    @vue/web-component-wrapper:  1.3.0
    vue: ^2.6.11 => 2.6.14
    vue-hot-reload-api:  2.3.4
    vue-loader:  16.8.3 (15.9.8)
    vue-style-loader:  4.1.3
    vue-template-compiler: ^2.6.11 => 2.6.14
    vue-template-es2015-compiler:  1.9.1
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

  1. yarn install
  2. yarn run serve
  3. Navigate to the served page
  4. Open web console
  5. Note that the logo image served is suffixed by ..png instead of .png
  6. Try again with version 5.0.0-beta.6 (package.json)
  7. Note that the logo image served is suffixed by .png, as it should be

What is expected?

Image file name should be logo.png (excl. hash in name)

What is actually happening?

Image file name is logo..png (excl. hash in name)


I believe this was caused by #6771

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions