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

What is the best way to import it in webpack #249

Open
ametthey opened this issue Jan 7, 2021 · 2 comments
Open

What is the best way to import it in webpack #249

ametthey opened this issue Jan 7, 2021 · 2 comments

Comments

@ametthey
Copy link

ametthey commented Jan 7, 2021

Hello, i'm wondering what is the best way to import it in js ?

import readmore from 'readmore-js';
import readmore-js from 'readmore-js';
import Readmore from 'readmore-js'; 

Thanks a lot, great plugin !

@martinbjeldbak
Copy link

Hi @ametthey check this out if you haven't solved this issue already: #237 (comment)

import Readmore from 'readmore-js';

worked for me

@ametthey
Copy link
Author

Hello, thanks a lot for answering, but it's not working for me
Here is an image of what I have
Capture d’écran 2021-01-16 à 19 47 02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants