Comments (2)
Hey @kenji-twp,
We disable it by default because public
is not part of the directory structure of a Shopify theme.
The assets in the public
directory get copied to the dist directory during build only. You should be able to enable it in your vite config file using the publicDir
option, then you could use rollup-plugin-copy to copy those files during dev as well.
static-assets.mp4
from shopify-vite.
Hey @montalvomiguelo, thanks so much for that! I was able to solve this following your instructions. I just ended up replacing rollup-plugin-copy with my own node script. Thank you!
from shopify-vite.
Related Issues (20)
- vite.liquid: Template content exceeds 256 KB limit HOT 5
- What could be causing slow reloads HOT 1
- [Fly.io] - Vite is running localhost:5173 on production HOT 6
- Possible CORS errors in Console HOT 1
- modulepreload for dynamic imports HOT 1
- ERR_CERTIFICATE_AUTHORITY_INVALID with vite-plugin-basicssl
- Handle external scripts in dev HOT 3
- HMR not working as expected HOT 3
- Tailwind CSS styles not updating during Hot Module Reloading HOT 1
- Basic setup with `vite-plugin-page-reload` not working - ESM error HOT 3
- Tailwind & Vite Hot Reload Not working on the first hot reload HOT 3
- Release 3.0.0 HOT 2
- Issue with Hot Reload in Vite Plugin HOT 1
- Problem with build.manifest option
- Running shopify and vite servers in parallel does not work following guide HOT 3
- Trouble rendering media on dev server HOT 2
- Stripped script and stylesheet version numbers breaks Shopify cache HOT 5
- Wrong CSS imports order in build mode HOT 4
- theme css file is not loading in app extension HOT 7
- Additional attribute in render 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 shopify-vite.