ReactPWA

ReactPWA

  • Docs
  • Features
  • Blog
  • Examples
  • Help

›Plugins

Getting Started

  • Initial setup
  • PawJS Configuration
  • Web App manifest

Guide

  • External resources
  • Internal APIs
  • Environment Variables

Routing

  • Add new route
  • Async routing
  • Nested routes

Plugins

  • Redux
  • Image Optimization
  • Sass
  • LESS

Deployments

  • Heroku
  • Amazon EC2
  • Digital Ocean
Edit

LESS

Less (which stands for Leaner Style Sheets) is a backwards-compatible language extension for CSS.
It is a JavaScript tool that converts your Less styles to CSS styles.

We decided to add LESS support to the ReactPWA with simple plugin @pawjs/less while implementing
CSS framework libraries like AntDesign.

Installation

$ npm i @pawjs/less --save-dev

webpack.js

Edit/Create /src/webpack.js

import LessPlugin from "@pawjs/less/webpack";

// ... other imports if any


export default class ProjectWebpack {
  constructor({addPlugin}) {

    addPlugin(new LessPlugin);
    // ...
  }
}

As simple as that now you application can parse .less files and can extract it to the CSS generated from anywhere inside the project.

Pretty cool right!

← SassHeroku →
  • Installation
  • webpack.js
ReactPWA
Docs
Getting StartedPluginsExamples
Community
User ShowcaseProject Chat
More
BlogGitHubStar

Giants supporting us

Atyantik Technologies Private LimitedDigitalOceanEventerpriseBrowserStackNavicat
 
Support ReactPWA

Copyright © 2019 Atyantik Technologies Private Limited