Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation steps in a cordova app (core app without bundler) ? #15

Open
maqeelqureshi opened this issue Apr 12, 2021 · 0 comments
Open

Comments

@maqeelqureshi
Copy link

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,

  1. Installed and tested webpack plugin
  2. npm i framework7-loader
  3. Updated webpack.config.js
 rules: [
      {
        test: /\.f7.html$/,
        use: [
          'babel-loader',
          'framework7-loader',
        ],
      },
      {
        test: /\.f7.js$/,
        use: [
          'babel-loader',
          'framework7-loader',
        ],
      },
    ]
  1. Renamed routes.js to routes.f7.js
  2. 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;
  1. rename about.html to about.f7.html
  2. 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)

@maqeelqureshi maqeelqureshi changed the title Steps to implement in an core cordova app (without bundler) ? Implementation steps in a cordova app (core app without bundler) ? Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant