-
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
I am trying to migrate from V5 to V6. I need to avoid xhr requests for performance.
For testing this loader I have created a new cordova-core app without bundler (webpack) using CLI. Now what would be the steps to implement this loader?
I tried following steps,
- Installed and tested webpack plugin
- npm i framework7-loader
- Updated webpack.config.js
rules: [
{
test: /\.f7.html$/,
use: [
'babel-loader',
'framework7-loader',
],
},
{
test: /\.f7.js$/,
use: [
'babel-loader',
'framework7-loader',
],
},
]
- Renamed routes.js to routes.f7.js
- Updated routes.f7.js to `import about from '../pages/about.f7.html';
var routes = [
{
path: '/',
url: './index.html',
},
{
path: '/about/',
component:about,
//url: './pages/about.html',
},
];
export default routes;
- rename about.html to about.f7.html
- Removed references of routes.js and app.js from index.html. (because if will use import than i will have to rename this to index.f7.html)
Now when i try to run the application is shows error that
GET http://localhost:8080/config.xml 404 (Not Found)
Metadata
Metadata
Assignees
Labels
No labels