Comments (1)
This is available in v0.6.29.
Important: This API is subject to change (might end up using different variable names).
You can set this in plenti.json
like:
{
"entrypoint_js": ":fingerprint"
}
Note that if you omit the entrypoint_js
key, it defaults to spa
for backwards compatibility.
Also, we also renamed the former entrypoint
key to entrypoint_html
to avoid conflicts - currently this isn't being used because using a dynamic svelte component in router.svelte was throwing console errors.
If using :fingerpring
, the value is dynamic so you'll want to set it using magic prop env.entrypointJS
in your <head>
like:
<script type="module" src={`/${env.entrypointJS}/core/main.js`}></script>
Now on every build the JS scripts will get a unique folder name in the format of a random 10 character string (e.g. XwlUjkLudT
)
from plenti.
Related Issues (20)
- Gitea backend for CMS HOT 2
- Check port before build
- [Feature Request] Make plenti a caddy plugin HOT 2
- Unable to launch CMS on localhost HOT 7
- Hydration flicker HOT 1
- Bitbucket CMS Backend
- Can't use hyphens in filename HOT 1
- Install in Ubuntu HOT 1
- Failing build: Credentials are no longer valid for the Snap Store HOT 4
- Assets dir in Plenti site template HOT 3
- Failed build: field replacements not found in type config.Archive HOT 4
- Can SSR be enabled with V8 engine? HOT 2
- Error when using CMS editor with GitLab Pages in a monorepo HOT 5
- plenti serve is spitting errors HOT 9
- Can't use "plenti" command HOT 2
- Broken build: invalid go version '1.21.0': must match format 1.23 HOT 1
- Component cache
- Custom env variable
- Live Reload: Broken/Missing JS script? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plenti.