Your help would be very greatly appreciated, thanks all. Project setup Implementing live reload with Node. Rather than ramble on, I'll get to it: does anyone have an open source project where they are using Docker and Webpack development server with their Rails project? Even better would be if you are using TailwindCSS, but I will take what I can get. suddenly the problem will be fixed again. Then, reverting the very same configuration modification I had made to fix the problem on the last occurrence. Webpack dev server seems very finicky and hacky, I can make certain configuration modifications and get the desired behavior, then it will break without changing anything (Ex: the Tailwind utility classes are no longer detected and so all styling is removed from the present view). The live reload feature does not work with my configuration, and any time I make a change to a utility class in my view template files (via Tailwind), I have to stop the server and restart it, which is very frustrating. In short, Webpack has been a massive headache to work with. I have also configured TailwindCSS for this project. I am using Docker Compose to spin up one container for my application server and another for webpack, which runs webpack-development-server. I don't mean for this to be a debugging thread so I won't go into too much detail, but here are the circumstances: Try /r/railsjobs, /r/forhire, or the following job sites: Looking for work, or need to hire Rails developers? Ruby Doc: Complete and accurate documentation for the Ruby programming language. ![]() Rails API: Searchable docs built with the sdoc gem. ![]() APIdock: Rich and usable interface for searching, perusing and improving the documentation.Bundler: Manages an application's dependencies.Ruby Version Manager (RVM): alternative ruby environment manager.Rbenv: manage multiple ruby environments.Become A Ruby & Rails Developer In 90 Days.env, restarted the node process - browser now updates automatically when code is changed. Browser was not updating when code was changed. After reading a few posts I realized that webpack-dev-server does not generate a new js file but instead injects one into index.html. edited Just duplicated an older project and updated the packages to c-r-a 4.0.1, react 17.0.1, typescript 4.1.2. Learn Web Development with Rails (Tutorial Book) I experienced a similar situation where webpack-dev-server was serving my index.html file but not updating.Hackety Hack is a shoes app for playing around with ruby. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |