Skip to content
This repository has been archived by the owner on May 20, 2021. It is now read-only.

Import JavaScript modules #97

Open
allthesignals opened this issue Apr 11, 2018 · 0 comments
Open

Import JavaScript modules #97

allthesignals opened this issue Apr 11, 2018 · 0 comments

Comments

@allthesignals
Copy link

Could someone help me understand how to approach importing Foundation's JavaScript modules as outlined in this blog post:

import { Box } from 'foundation-sites/js/foundation.util.box.js'
import { Keyboard } from 'foundation-sites/js/foundation.util.keyboard.js'
import { MediaQuery } from 'foundation-sites/js/foundation.util.mediaQuery.js'
import { Move, Motion } from 'foundation-sites/js/foundation.util.motion.js'
import { Nest } from 'foundation-sites/js/foundation.util.nest.js'
// ... plus any other utitilies you may need

I would like to create some addons for this, but I'm dead-in-the-water with the asset management behind this stuff. How might I go about doing this? I know that the new version of Foundation allows for this.

Thanks for any help!

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant