CDN version should be included in `https://github.com/eta-dev/eta/releases`
See original GitHub issueIs your feature request related to a problem? Please describe.
I find absolutely no way to use Eta in Vite, other than
cp -r ./node_modules/eta/dist/browser ./public/vendor/eta
rm -r ./public/vendor/eta/*.dev.*
declare global {
interface Window {
Eta: typeof import('eta')
}
}
const script = document.createElement('script')
script.src = '/vendor/eta/eta.min.js'
document.body.append(script)
const Eta = window.Eta
export default Eta
And vite.config.js
// https://vitejs.dev/config/
export default defineConfig({
build: {
rollupOptions: {
external: /^\/vendor\//,
},
},
})
I also notice that eta.min.js
does not exist anywhere in Github, only in NPM and various CDN’s.
Describe the solution you’d like
- Deploy
eta.min.js
andeta.min.js.map
tohttps://github.com/eta-dev/eta/releases
- Solve https://github.com/eta-dev/eta/issues/122
Additional context
https://eta.js.org/docs/learn/install should include Browser (non CDN).
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
git - Managing releases on github & CDN
This is how i manage the tags and versions: Firstly, the the tag generation is done only when the master branch is updated....
Read more >Failed to fetch version info for xxx/xxx. · Issue #18216
When I open this link: https://cdn.jsdelivr.net/gh/pexcn/daily@gh-pages/pac/, the following error will be reported: Failed to fetch version ...
Read more >[Question] Monitor versions on CDN links in HTML #4781
Is there a way for me to get Renovate Bot to monitor the versions of Bootstrap and jQuery CDNs in some HTML files?...
Read more >please make sure newest versions are CDNs. · Issue #374
I would love to include it from cdnjs but it's stuck at version 2.3.2 . I don't want to use npm, only the...
Read more >GitHub url does not work when there are no releases #18101
I would expect the github url to work even when there are no releases and instead, use the master branch. For example, /gh/jsonmc/jsonmc/ ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@patarapolw Sorry for the bad question, but why is it necessary for the CDN build to be included in the Github release? I’m a bit wary of adding it there because I’d rather only keep the source code in the Github releases
wget
is a possible way.It is probably better to host it yourself, rather than hotlinking from CDN.