Skip to content

Issue compiling with brfs on Widget with assets #13

@unkillbob

Description

@unkillbob

Having some issues with the Widget with assets lesson whereby brfs doesn't seem to be run over my widget.js file.

I execute browserify -t brfs -d -r ./widget.js:widget | browserify-adventure verify as per the description but when I load the given URL in the browser there are JS errors and upon inspection the widget.js code still has the untransformed fs.readFileSync statements.

If I run browserify directly on widget.js as follows: browserify -t brfs -d -widget.js > bundle.js then it correctly transforms.

Is there a flag missing from the call to browserify in the lesson description or something? I don't understand what (if anything) I'm doing wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions