Directory Structure
Overview
The default directory structure is intended to provide a great starting point for both Progressive Web App and Cordova App.
The Root Directory
/resThis directory contains platform-specific resources such as launch icons, splash screens, configuration and resource files for the Cordova project./wwwThis directory contains the project's HTML/CSS/JS assets.config.xmlIt is a global configuration file that controls the Cordova app's behavior.
The www Directory
/assetsThis directory contains the CSS, JS, images, fonts assets etc./partialsThis directory contains the HTML files known as partials.index.htmlThis file is the entry point to the app.manifest.jsonThis Web App Manifest is a simple JSON file that tells the browser about your PWA and how it should behave when installed on the user's home screen.service-worker.jsThis file empowers the PWA by enabling offline caching, push notifications etc..htaccessThis is a configuration file for Apache Web Server.favicon.icoThis is a favicon in ICO format.
The assets Directory
The /assets contains two directories — /vendor and /custom
The
/vendordirectory contains the core dependencies, third-party libraries and plugins used in the app.The
/customdirectory contains the custom assets such as images used in the app, CSS overrides or app-specific JavaScript functions.
Last updated