Skip to content

HELP How to output (compiled/unhashed/unminified) style.css file for inspection? #3278

Discussion options

You must be logged in to vote
// vite.config.js

module.exports = {
  build: {
    minify: false,
    rollupOptions: {
      output: {
        assetFileNames: "[name].[ext]",
      },
    },
  },
};
npx vite build --watch

Will output unhashed assets:

dist
├── assets
│   ├── favicon.17e50649.svg
│   └── index.b3c5dece.js
├── index.css
└── index.html

This is useful if you want to inspect your compiled CSS file

Hope this helps!

Regards

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ldexterldesign
Comment options

You must be logged in to vote
1 reply
@alamin3000
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants