Skip to content

Instantly share code, notes, and snippets.

@simonhlee97
Created March 1, 2023 10:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonhlee97/f5d9b021938ed7cdd3e12f8fd944bec3 to your computer and use it in GitHub Desktop.
Save simonhlee97/f5d9b021938ed7cdd3e12f8fd944bec3 to your computer and use it in GitHub Desktop.
Make Vite compatible with Rails.
{
"all": {
"sourceCodeDir": "app/frontend",
"watchAdditionalPaths": []
},
"development": {
"autoBuild": true,
"host": "127.0.0.1",
"publicOutputDir": "vite-dev",
"port": 3036
},
"test": {
"autoBuild": true,
"publicOutputDir": "vite-test",
"port": 3037
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment