Comments (4)
Well, I'll stick to webpack then, which is working just fine. Thanks.
from craft-vite.
So probably you need to do something Windows-specific here, but I'm sorry, I just don't know what that would be.
I do know that it uses chokidar
to detect filesystem changes:
https://github.com/paulmillr/chokidar
Here's the key bit:
ViteRestart({
reload: [
'./templates/**/*',
],
is ./templates/
the directory where your templates are? If not, you'll need to change it.
Maybe there's something Windows-specific that needs to be done here in specifying the directory?
This doesn't really have anything to do with the Vite plugin tho, it's related to Vite itself (or possibly chokidar
or the ViteRestart
plugin), so I'd check those resources for insights.
Sorry I don't have a better answer for your particular local dev setup.
from craft-vite.
webpack uses the same package (chokidar) to detect file system changes, FWIW.
from craft-vite.
Someone using Windows mentioned that you might need to turn polling on as per the instructions for Vagrant here:
https://nystudio107.com/docs/vite/#local-development-environment-setup
server: {
host: '0.0.0.0',
watch: {
usePolling: true,
},
},
from craft-vite.
Related Issues (20)
- Add registerAsset() function so register functionality can work directly with css HOT 1
- Your view on CSS style names coming from Craft's field HOT 2
- Multi-domain setup HOT 2
- .getCssInlineTags() function produces encoded output HOT 1
- Loading svg icons in css async (production) HOT 1
- Getting CORS and mim-type not allowed error with ddev HOT 5
- Add support for referencing src paths to craft.vite.inline() HOT 4
- Failed to connect to localhost port 3000 HOT 5
- TypeError when setting errorEntry configuration to an array HOT 2
- manifest.json path vite 5 HOT 1
- Having trouble with asset loading after build HOT 2
- Preview version for craft v5 already installable via composer? HOT 4
- Incorrect return from getCssHash() HOT 2
- CriticalCSS + entry types HOT 2
- Default ASYNC_CSS to false HOT 2
- Uninstallable with the Craft 5 Beta HOT 2
- How to use with Blitz HOT 2
- vite.php - The artifactUrl Twig function has been deprecated. Use cloud.artifactUrl instead. HOT 5
- Getting clear on how it works in real world as local url is appearing in live staging site HOT 3
- Support ddev share HOT 3
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 craft-vite.