Comments (6)
How did you get HMR working?
from craft3-webpack5-tailwind2-boilerplate.
Like mentioned here:
Then install our other packages and run the HMR development server:
$ yarn install
$ yarn dev
(I use yarn for my project, but you don't need to - use the tool of your choice.)
Webpack assets are set up to serve from https://localhost:8080 by default.
Note: The URL "https://localhost:8080" won't show anything by default, but if you prefer to have a page load, you can edit wpconfig/webpack.dev.js and uncomment the new HtmlWebpackPlugin code block. This will generate an index.html file along with your assets.
from craft3-webpack5-tailwind2-boilerplate.
I followed those instructions, but all paths return the same "cannot load" error. Which makes sense to me, because the only files generated in the dist are manifest.json and stats.json. That commented out block generates an html file, but it's not a proper rendering of my homepage. The twig isn't processed. Am I missing something obvious here? (Thanks for the reply Tiago!)
from craft3-webpack5-tailwind2-boilerplate.
Hmm.. when starting yarn dev do you see any errors?
Is the hmr url still localhost:8080? Is any other service running on that port? Did you check twigpack config? Is local SSL setup and active?
Just a couple of things that cause an issue ;)
(You welcome) ;)
from craft3-webpack5-tailwind2-boilerplate.
It seems the issues arise from using Docker/Nitro. Many other people are struggling with it as well.
from craft3-webpack5-tailwind2-boilerplate.
ah, sorry I don't use any of that...
from craft3-webpack5-tailwind2-boilerplate.
Related Issues (7)
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 craft3-webpack5-tailwind2-boilerplate.