-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Foundation 6.4 #20
Comments
Thanks! I started looking at the release candidate of 6.4 last weekend... Honestly, I was thinking about creating a Vue Plugin (see #18), which could have Foundation as a dependency and could be distributed as a npm module. Anywyay, there is a lot to figure out, I'll push something on a branch of this project as soon as I got a couple of components working. |
I got a couple of hours to play around, and managed to get a working Tooltip component: https://gist.github.com/hal0gen/06504ded380abdff761d6c411511d2a9 |
Hey Guys, I've been working with 6.4 today - you can use the modules like below, I use a file called "Foundation.js" in my plugin directory of my Vue.js site. I grabbed the base from the official Foundation 6.4 release candidate thread. Below is just the drop down modules but you can do this for all modules:
Then import that into main.js and Vue.use(YourImportedName). The only thing I'm having issues with is when building to production it's throwing an error:
Can the owner of this repo have a look, I think it's cause the Babel-loader is not doing something it should but I've tried a few things and got no where. Cheers, |
I've actually now been working on a new Vue Foundation integration which is working very well with 6.4. I'll release it this week :) |
awesome! have you seen the error that i'm getting above before? |
Add this below your imports:
|
but I'm not sure if that will fix your error, not seen it. |
Sorry i meant to include that in the post above as I have that in my code. It's a strange error can't seem to fix it, only does it when trying to build production. |
Great work! Foundation 6.4 default is flex-grid, but does not seem to be loading flex? |
For anyone who stumbles across this, I fixed the build to production error by including the foundation-sites/js directory in the babel-loader includes section. |
@hal0gen Any updates buddy?? { PS: We are releasing 6.4.2 soon... most probably early next week } |
To anyone watching this, I'm working on the upgrade this week. |
Upgrade completed. Clone the master and try it out. |
To anyone following this thread, I just migrated the foundation import from a heavy single file import to a modular import. See this file for details: https://github.com/vue-foundation/vue-foundation/blob/master/src/foundation.js The main.js file has also been cleaned up. |
A little back-story. I was working on my personal project and wanted to try out Abide, the foundation form validation javascript plugin. That is what got me into wondering how to split up the JS from a single import of As you can see I got it working however, it was far from an ideal import process. My ideal would be to simply import the I opened an issue in the Looks like a conversion to TypeScript and v7.0 will make things a little easier. PS: Abide has bugs when you try to destroy the object in the |
Great plugin! Do you have any idea when/if you will update to use foundation 6.4 which is now rc3 and supports ES6 modules? Will using 6.4 still require to use the mounted and destroyed hooks in each component?
Many thanks
The text was updated successfully, but these errors were encountered: