Comments (2)
label is still required because we use it for the web component element name e.g. <wc-md-helloworld></wc-md-helloworld>
.
Although, we could use the file's name plus randomly generated string e.g. <wc-md-helloworld-dgfhj23re></wc-md-helloworld-dgfhj23re>
However, if we do that, it would be impossible to guess the element name of a component pre-build. There's a chance someone wants to re-use a generated component(don't have an example, but it's possible?). Perhaps that should be an exception not the rule.
The path var can be removed and is fixed in #35. If no template, we could assume default page-template yes. Also fixed in #35.
edit: this problem of using labels isn't that simple. wc-md-loader requires a label to export the markdown to a generated component. IF we had wc-md-loader randomize the label, we wouldn't be able to retrieve the generated variable for our writePageComponentsFromTemplate function.
We can certainly use everything in this project with a generated label name, but the wc-md-loader will not bundle properly without it :(
from greenwood.
Actually, this one seems a little ambition for a Sprint 1, maybe it should get put aside for a later sprint I think?
from greenwood.
Related Issues (20)
- `static` property initializations break during bundling HOT 1
- "no custom element class found for this file" warning when prerendering with WCC HOT 1
- `develop` command fails on creating import map with `Failed to parse URL` error (Node >= 18.19.0)
- Lit v3 upgrade and SSR Pages support and compatibility for renderer plugin
- support bundling of `url` properties (like for `@font-face` + `src`) during CSS file optimization
- Upgrade to Node `20.x` (latest LTS)
- Resumability HOT 1
- Import Attributes support in Acorn
- align assets and build output directory naming conventions
- migrate to register function for NodeJS custom imports (no more flag!)
- HTML Modules plugin (experimental)
- leverage `Sec-Fetch-Dest` header for better filtering within Greenwood resource plugins
- nested SSR pages (and API routes) are throwing a module not found error (needs additional patch for adapters) HOT 1
- improve naming for (nested) bundled SSR page and API route entry points to better reflect original file based routing name HOT 1
- apply CSS optimizations and bundling to CSS (in) modules
- `<script>` tags of type `application/json` are breaking production builds
- Sitemap Generation HOT 5
- CSS Modules ™️ plugin
- prerendering breaks optimization configuration with multi-line formatted `<script>` / `<style>` / `<link>` tags
- functions in CSS declarations (like CSS `var`) are being incorrectly optimized
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 greenwood.