Coder Social home page Coder Social logo

Hmm.. Im also experiencing the same, only when running yarn build the js/css is created. I assume a configuration issue? about craft3-webpack5-tailwind2-boilerplate HOT 6 CLOSED

mizziness avatar mizziness commented on June 11, 2024
Hmm.. Im also experiencing the same, only when running yarn build the js/css is created. I assume a configuration issue?

from craft3-webpack5-tailwind2-boilerplate.

Comments (6)

storybynumbers avatar storybynumbers commented on June 11, 2024

How did you get HMR working?

from craft3-webpack5-tailwind2-boilerplate.

funkysoul avatar funkysoul commented on June 11, 2024

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.

storybynumbers avatar storybynumbers commented on June 11, 2024

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.

funkysoul avatar funkysoul commented on June 11, 2024

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.

storybynumbers avatar storybynumbers commented on June 11, 2024

It seems the issues arise from using Docker/Nitro. Many other people are struggling with it as well.

from craft3-webpack5-tailwind2-boilerplate.

funkysoul avatar funkysoul commented on June 11, 2024

ah, sorry I don't use any of that...

from craft3-webpack5-tailwind2-boilerplate.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.