Giter Site home page Giter Site logo

gjportegies / magento2-pwa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from monsoonconsulting/magento2-pwa

0.0 0.0 0.0 401 KB

Adds a service worker to Magento2 to enable PWA features

License: Open Software License 3.0

PHP 53.86% HTML 36.96% JavaScript 7.65% Less 1.54%

magento2-pwa's Introduction

Monsoon Service Worker

Adds icons, a web manifest file and service-worker file to make magento 2 a PWA.

Main Features

  • Supports Magento Blank and Luma as well as Hyvä based themes.
    ⚠️ Hyvä is recommended to ensure fast performance.
    luma pwa results
    hyvä pwa results
  • Makes Magento Installable as a PWA.
  • A CMS Page can be configured for an offline page.
  • Add to Home screen prompt
  • Enable/Disable Offline Google Analytics.
  • Utilises the Browser's Cache API.
  • Service worker lifecycle management.

Installation

composer require monsoonconsulting/magento2-pwa

Configuration

To configure the module go to Stores > Configuration > Monsoon > PWA.
configuration options

Offline Page

In Stores > Configuration > Monsoon > PWA select the page you wish to use as your offline notification page.
Alternatively use the default one provided by this module.

Customisation

In your Magento theme, override the images and PWA app details found in:

  • Monsoon/Pwa/view/frontend/web/images/favicons
  • Monsoon/Pwa/view/frontend/web/manifest.icon

For generating the correct icons you there are useful tools such as a favicon generator and maskable icon editor.

Configure Service Worker

Most PWA features can be adjusted added in the service-worker file.
Simply override Monsoon_Pwa/view/frontend/templates/service-worker.js.phtml in your theme to customise.

magento2-pwa's People

Contributors

rossmc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.