Comments (7)
Gridsome v0.2 was just published. It allows you to have a /static
folder with files which will be copied to the /dist
folder. Hope that solves your issue.
from gridsome.
Thank you! You can have a static folder in the next update. Will publish it within a few days.
from gridsome.
@hjvedvik Awesome! Thank you very much. I'm going to close for now as this should solve my issue. Thanks!
from gridsome.
A question about the use of the static folder: Is this just meant for specific files and not assets such as styles? I can't link to anything in the static folder using g-image
or g-link
, and Gridsome seems to break at the thought of accessing it for anything at compile time.
from gridsome.
@cdvillard Think of the static folder as a place where you can put pdf documents or any other resource that you only need access to once the site is built. Any resource you want Gridsome to have access to should be in your src/assets
directory
from gridsome.
It does not works. Please example or documentation.
from gridsome.
The static folder in the root directory of your project seems to only support only one level. Adding f.e.
- static
- myimg1.png
- images
- myimg2.png
myimg1.png will be accessible at /myimg1.png
mypng2.png will not be avaible at all using /images/myimg2.png
Also the src/assets directory fails on me, not matter if I use sub folders or not. Digging the code :)
from gridsome.
Related Issues (20)
- Dynamic pages using templates HOT 1
- error while using gridsome/vue-remark
- Load content within content container
- Gridsome i18n dynamic router with dot doesnt work HOT 1
- Gridsome is not really static and titles don't work when refreshing HOT 1
- Create a section that doesnt reload when you switch from page
- gridsome build stuck HOT 2
- how to use @gridsome/transformer-remark to marked
- An error which says "Failed to process image xxxx" happened when run gridsome build
- Google Analytics 4? HOT 1
- Will Gridsome continue to have support and updates? Or will it become a deprecated technology? HOT 4
- Gridsome build stucked
- Building with dynamically generated pages for tags fails.
- Google Tag Manager tag is not firing when viewing the page; we have to reload the page. HOT 1
- [remark-wiki-link] Warning: please upgrade to remark 13 to use this plugin
- Gridsome build error HOT 1
- Gridsome airtable requires update as API key will be depricated from Feb 2024
- Questions about adding properties to the page-query list HOT 1
- Is there a way to merge grid some into nuxt?
- Build error 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 gridsome.