-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
build: add vite support #559
Conversation
7109abc
to
36855f0
Compare
@@ -13,6 +13,6 @@ | |||
<strong>We're sorry but the ActivityWatch Web UI doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> | |||
</noscript> | |||
<div id="app"></div> | |||
<!-- built files will be auto injected --> | |||
<script type="module" src="/src/main.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thought this would mess up the webpack build... But seems to work.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #559 +/- ##
==========================================
+ Coverage 25.55% 25.60% +0.04%
==========================================
Files 27 27
Lines 1616 1613 -3
Branches 273 273
==========================================
Hits 413 413
+ Misses 1177 1174 -3
Partials 26 26 ☔ View full report in Codecov by Sentry. |
styles fixed by disabling vite server CSP
themeLink.href = '/dark.css'; // darkCssUrl | ||
themeLink.rel = 'stylesheet'; | ||
// Append Dark Theme Element If Selected Mode Is Dark | ||
theme === 'dark' ? document.querySelector('head').appendChild(themeLink) : ''; |
Check warning
Code scanning / CodeQL
Expression has no effect Warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Trying to keep the webpack build intact for now, while trying to get a working build with vite.
TODO
If we are done with the above, we can merge and continue the following in a new PR:
Failed to resolve entry for package "vue-d3-sunburst". The package may have incorrect main/module/exports specified in its package.json