Skip to content

About

Inject static assets and access bundled paths from inside an Astro integration

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

40 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Prototypes for injecting static assets into Astro bundle

Basic Idea

"astro:config:setup": (params) => {
  // Should inject an asset into the build and return the path that it is available at client side
  asset = injectAsset({
    entrypoint: "C:/.../styles.css",
  });
},

Why?

  • Inject static assets from anywhere
  • Include assets inside the Astro bundle
  • Access the bundled/hashed path of an asset inside an integration

Strategies

Explore different strategies in the list below. Each strategy is a branch that includes explainations, limitations, examples, playground, etc

About

Inject static assets and access bundled paths from inside an Astro integration

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

⌂ 换网址