Alexandr Järvi
Alexandr Järvi

Reputation: 177

How to install FlipDown.js library using Webpack?

I needed the FlipDown.js library for my project which uses Webpack.
I installed the library

npm i flipdown

But I don't know what should I do further to start working with the library.
How to import flipdown.css and flipdown.js to my style.less and index.js files, respectively?

Upvotes: 0

Views: 1050

Answers (1)

Pim de Wit
Pim de Wit

Reputation: 305

Seems like flipdown.js does not have any default exports defined. You could try the following;

index.js

import 'flipdown';

const countdown = new FlipDown();
console.log(countdown); // Is this what you expect it to be?

As for the styles:

@import 'flipdown/dist/flipdown.css`;

Upvotes: 0

Related Questions