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 does not affect style #4597

Closed
7 tasks done
fengxinming opened this issue Aug 13, 2021 · 1 comment
Closed
7 tasks done

assetFileNames does not affect style #4597

fengxinming opened this issue Aug 13, 2021 · 1 comment

Comments

@fengxinming
Copy link

Describe the bug

expect to output assets/index.css after building, but assets/style.css is created, the config is below:

{
    build: {
      cssCodeSplit: false,
      rollupOptions: {
        output: {
          manualChunks: undefined,
          assetFileNames: 'assets/[name][extname]',
          entryFileNames: 'assets/[name].js',
          format: 'iife'
        }
      }
    }
}

Reproduction

https://github.com/fengxinming/vite-plugins/tree/main/examples/demo

System Info

System:
   OS: Windows 7 6.1.7601
   CPU: (4) x64 AMD A10-7800 Radeon R7, 12 Compute Cores 4C+8G
   Memory: 2.78 GB / 6.96 GB
 Binaries:
   Node: 12.18.1 - C:\Program Files\nodejs\node.EXE
   Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
   npm: 6.14.4 - C:\Program Files\nodejs\npm.CMD
 Browsers:
   Chrome: 91.0.4472.164
   Internet Explorer: 9.0.8112.16737

Used Package Manager

pnpm

Logs

No response

Validations

@CHOYSEN
Copy link
Contributor

CHOYSEN commented Aug 15, 2021

This seems to has been fixed by #4352 in v2.5.0-beta.0.

@bluwy bluwy closed this as completed Mar 14, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Mar 29, 2022
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

3 participants