Reputation: 177
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
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