Quick Reference Codes.

My Reference sheet quick code and Snippets.

VS Code

Creating a Shortcut URL to open the VsCode with a specific folder.

vscode://file/C:/path/to/your/folder

Vue JS fixed dist names

While generating the dist folder folder the names dynamically change to get fixed names in Vue 3. the following is the code.

just copy rollupOptions from the

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'

export default defineConfig({
  base: "./",
  filenameHashing: false,
  plugins: [vue()],
  build: {
    rollupOptions: {
      output: {
        entryFileNames: `assets/[name].js`,
        chunkFileNames: `assets/[name].js`,
        assetFileNames: `assets/[name].[ext]`
      }
    }
  },
  resolve: {
    alias: {
      "@": resolve(__dirname, "src"),
    },
  },
  server: {
    open: true,
  },
});