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

Add dist/feathers.min.js #65

Merged
merged 1 commit into from
Jun 24, 2016
Merged

Add dist/feathers.min.js #65

merged 1 commit into from
Jun 24, 2016

Conversation

daffl
Copy link
Member

@daffl daffl commented Jun 24, 2016

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
@@ -27,8 +27,9 @@
"clean": "rm -rf dist/ && mkdir -p dist",
"browserify:test": "browserify test/browser/test.js -t babelify --outfile dist/browser.test.js",
"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

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
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

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
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

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