vitejs refactor #110
Merged
trentlarson
merged 17 commits from jsnbuchanan/crowd-funder-for-time-pwa:feat/vitejs
into master
8 months ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'jsnbuchanan/crowd-funder-for-time-pwa:feat/vitejs'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Here's the first stab at the vitejs refactor. I'm not completely done testing. When I start it up, I get the below screenshot with an error notification,
Could not set notifications.
, so I could have messed something up.I also see
App.vue:346 Got vapid key:
in the browser console... which may just be an error in my local configuration.To start the vite development server run:
The other big difference was having to change environment variables. Instead of
VUE_APP_
, the prefix is nowVITE_
.So, we'll need to update devops configs probably.
I'll put items into separate comments.
npm run serve
doesn't work -- at least, I get a blank screen at the port it gives. Sincenpm run dev
now runs fine, we can just remove theserve
from the README.This works OK on the other repo's master branch.
Things look pretty good! I think there's just that one issue. I'll try an actual deploy in docker onto the test server soon.
<script lang="ts">
import { AxiosError, AxiosRequestConfig } from "axios";
import Dexie from "dexie";
import "dexie-export-import";
This is a line that is needed for the db.export call (since it adds to the Dexie prototype).
alias: {
"@": path.resolve(__dirname, "./src"),
buffer: path.resolve(__dirname, 'node_modules', 'buffer'),
'dexie-export-import/dist/import': 'dexie-export-import/dist/import/index.js',
I now see this, which possibly takes the place of that import... so I guess we'll want to talk more about how this should work
It works to have both of these in place so I'll continue with both.
Okay. Sounds good @trentlarson
Things work, but FYI with
npm run dev
when I make changes to files then the effects don't take place immediately -- which is curious because the console will show a message thus:[vite] hot updated: /src/views/AccountViewView.vue
I only see changes when I reload.
Not a show-stopper.
My work is continuing here: https://gitea.anomalistdesign.com/jsnbuchanan/crowd-funder-for-time-pwa/pulls/1
WIP: vitejs refactorto vitejs refactor 8 months agoa0ef8b6fd3
into master 8 months agoa0ef8b6fd3
.