close
Skip to content
This repository was archived by the owner on Sep 4, 2019. It is now read-only.

Add dist/feathers.min.js - #65

Merged
daffl merged 1 commit into
masterfrom
browserify-min
Jun 24, 2016
Merged

Add dist/feathers.min.js#65
daffl merged 1 commit into
masterfrom
browserify-min

Conversation

@daffl

@daffl daffl commented Jun 24, 2016

Copy link
Copy Markdown
Member

Closes #64

@daffl
daffl merged commit 721695a into master Jun 24, 2016
@daffl
daffl deleted the browserify-min branch June 24, 2016 04:12
@daffl daffl removed the in progress label Jun 24, 2016
Comment thread package.json
"browserify:dist": "browserify src/client.js -t babelify --standalone feathers --outfile dist/feathers.js",
"browserify": "npm run browserify:dist && npm run browserify:test",
"add-dist": "npm run clean && npm run browserify:dist && git add dist/ --force && git commit -am \"Updating dist\"",
"browserify:min": "browserify src/client.js -t babelify --standalone dist/ | uglifyjs > dist/feathers.min.js",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like that dist/ after the --standalone needs to be feathers. 1.4.0 is broken now. 😞

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just tried 1.4 and it seems to be working fine although the --standalone flag probably really isn't needed.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The standalone flag makes a global of the given name. In the old version, it created window.feathers. 1.4.0 creates window.dist. I'm using rollupjs to bundle my app code, which translates external ES6 module imports into references to globals, which just broke.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense. The export is fixed in v1.4.1

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks! 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants