You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pulp server runs browserify and succeeds.
I would expect to see something like pulp browserify > app.js served at /app.js.
Instead I see something that looks like something thats bundled, but not browserified.
This file at app.js, if using require, throws javascript errors in a browsers console.
Is there another url for the browserified bundle?.
I could very well be using pulp server wrong, (eg maybe I need some sort of extra pulp/requirejs loaded in the browser?). but an example of an index.html file it works with would be greatly appreciated :).
The text was updated successfully, but these errors were encountered:
This is an oversight on my part: pulp server currently doesn't do any browserifying, i.e. it doesn't support code that uses require(). (It used to, until about an architecture change I made about a year ago.) This should be relatively easy to fix, though.
As a workaround you might be able to do something like pulp --watch browserify --to app.js and then run something like serve in another terminal.
Ah no worries!. It still attempts to do some browserifying (eg it echoes to console and fails if deps aren't present). So I thought it was my user error :).
pulp server
runs browserify and succeeds.I would expect to see something like
pulp browserify > app.js
served at /app.js.Instead I see something that looks like something thats bundled, but not browserified.
This file at app.js, if using require, throws javascript errors in a browsers console.
Is there another url for the browserified bundle?.
I could very well be using
pulp server
wrong, (eg maybe I need some sort of extra pulp/requirejs loaded in the browser?). but an example of an index.html file it works with would be greatly appreciated :).The text was updated successfully, but these errors were encountered: