Skip to content
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

Help to install the library #20

Closed
florianbouvot opened this issue Nov 3, 2018 · 3 comments
Closed

Help to install the library #20

florianbouvot opened this issue Nov 3, 2018 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@florianbouvot
Copy link

florianbouvot commented Nov 3, 2018

Hi @Twikito,

It's not an issue with your library: everything works with direct download.
But I want to use it in my workflow (Gulp 4 with basic JS task) so I'm wondering how I can use import or require? Can you give me some advice?

Thank you.

@Twikito Twikito added the help wanted Extra attention is needed label Nov 7, 2018
@Twikito
Copy link
Owner

Twikito commented Nov 7, 2018

Thanks for taking time to report this issue.

I think you should just add "./node_modules/easy-toggle-state/dist/easy-toggle-state.js", at line 79 of your package.json, and it should be done.

@florianbouvot
Copy link
Author

florianbouvot commented Nov 9, 2018

@Twikito sorry, that's what I was doing first but it didn't work.
I just understood that it's because I use async on <script>.

Edit: Like mentioned in your doc window.initEasyToggleState(); works ☺️

@Twikito
Copy link
Owner

Twikito commented Nov 9, 2018

👍

@Twikito Twikito closed this as completed Nov 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants