pps
1
I hope all of you are good in this pandemic period 
-
index.html
like this one
-
app.js
import Framework7 from 'framework7/framework7.esm.bundle'
import Dom7 from 'dom7
var $$ = Dom7;
var app = new Framework7({...})
-
ISSUE 
how to add/import/link css files from node_module 
-
what i’ve tried before:
a) In app.js
(didn’t worked) 
import style from ‘framework7/css/framework7.bundle.css’
b) In index.html(inside head tag)
(didn’t worked) 
<link rel="stylesheet" href="./../node_modules/framework7/css/framework7.bundle.css">
// Import Framework7 Styles
import 'framework7/css/framework7.bundle.css';
1 Like
pps
3
Sorry Didn’t work either 
maybe I should use rollup.js
It should work. Since its the way to import the style. How did you initialize your project? Manually or via cli?
pps
5
First I create cordova
project & then installed framework7
through npm
pps
6
also i’ve installed rollup.js
and required plugin as they documented (plugin-node-resolve
)
app is initializing
BUT for css, the rollup shows error
Can you use the cli? You can start a f7+ cordova project in 5minutes. All set up. Also the import styles.
https://framework7.io/cli/
1 Like
pps
8
Sounds well !!!
giving a try to cli. you are always helpful
1 Like
You need to use bundler that supports importing CSS files (like webpack or rollup with plugings for CSS imports)
1 Like