Skip to content

Parcel config as generated doesn't work #13

@jyurek

Description

@jyurek

The documentation and generated initializer don't work. The generated config block, as created in https://github.com/michaldarda/parcel-rails/blob/master/lib/parcel/rails/parcel_generator.rb#L9-L12 do nothing, because parcel on line 9 is not a method and the block is never executed.

The README's version (https://github.com/michaldarda/parcel-rails#configuration) does work. In fact, it works perfectly well with the multiple-entry-point supporting parcel.

config.parcel.entry_points = %w(app/javascript/application.js app/javascript/another.js)

This line gets me this:

$ be rake parcel:compile
yarn run v1.12.3
$ /Users/jyurek/Development/studio/node_modules/.bin/parcel build app/javascript/application.js app/javascript/another.js -d public/parcels
✨  Built in 178ms.

public/parcels/application.js     1.13 KB    7ms
public/parcels/another.js         1.13 KB    6ms
public/parcels/application.map      327 B    3ms
public/parcels/another.map          325 B    3ms
✨  Done in 1.17s.

Which is exactly what I would expect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions