Framework7 CLI 2.1.1 Released

New Framework7 CLI version available. Here is what is new:

  • Update Sharp lib to latest
  • Templates updated to be compatible with new Aurora theme
  • There is a new option on app creation that allows to exclude Framework7 Icons and Material Icons fonts
  • Webpack config:
    • watchOptions.poll changed to 1000 (1s) to decrease CPU overload
  • New Webpack NPM scripts:
    • build-dev - build web app using development mode (faster build without minification and optimization)
    • build-cordova-dev - build cordova’s www folder from and build cordova app using development mode (faster build without minification and optimization)
    • build-cordova-ios-prod - to build only iOS app
    • build-cordova-ios-dev - to build only iOS app in dev mode
    • build-cordova-android-prod - to build only Android app
    • build-cordova-android-dev - to build only Android app in dev mode
  • New NPM scripts when Webpack is not used:
    • build-cordova-ios - to build only iOS app
    • build-cordova-android - to build only Android app
6 Likes

if i have a project build in cli before the latest version, how to update to the new commands?

There is no update process. Just create new project with CLI, and then just copy “scripts” from package.json in new project to package.json in old one

Been wanting to ask about this actually. For example a project has 15 cordova plugins and a few other dependencies in the App itself say vuex, name it. Do I have to reinstall these plugins one by one again?

If you just replace config.xml with all the new plugins, it should install them automatically. For dependenices, copy-paste them to package.json and run npm i

1 Like