Open bshconversio opened 4 years ago
may be you can import the scss directly , something like:
@import '~flexmasonry/dist/flexmasonry'
@guandai I think @bshconversio meant usage of FlexMasonry in javascript using webpack / bundler.
I had the same problem. Ended up using:
import FlexMasonry from 'flexmasonry/src/flexmasonry.js';
i am try to use of flexmasonary using
import FlexMasonry from 'flexmasonry';
can i know why it's not working.i don't have enough knowladge of npm and all.But one of my friend checked your package.json file and he changed below things.
from
"main": "dist/flexmasonry.js",
to
"main": "src/flexmasonry.js",
and after it's working.but still i don't know how to import css.