Coder Social home page Coder Social logo

Comments (2)

jtdowney avatar jtdowney commented on June 14, 2024

I noticed this as well. It appears to be because parcel-rails is telling parcel to start its server for HMR but serving the assets from the rails process. This causes a slight path confusion. I fixed this by using the following in my Procfile instead of bin/rails parcel:serve:

parcel: yarn parcel serve --public-url /parcels -d public/parcels app/javascript/application.js

The --public-url /parcels tells the parcel server to serve the files under /parcels like rails is, that way it generates the correct path to application.map.

from parcel-rails.

sumitngupta avatar sumitngupta commented on June 14, 2024

So I got a crappy commit set to let the parcel.rb configuration also set public-url flag on the yarn parcel command:

2257f83

I'm not the most prolific gem writer... I'd love to do it a better way that doesn't require the library to have to know about every single option parcel has as well as writing some tests for this. If someone has another gem or link to point me at, im happy to do the work get it done.

from parcel-rails.

Related Issues (10)

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.