Nutritious Pomegranate Muffins

    rescript-service-worker-loader

    1.0.3 • Public • Published

    rescript-service-worker-loader

    Enable serviceworker-webpack-plugin for your create-react-app project.

    Usage

    npm i -D rescript-service-worker-loader

    Set up rescript as how its document said, then add 'service-worker-loader' to the list, for example in my .rescriptsrc.js:

    const path = require('path');
     
    module.exports = [
      ['use-babel-config', '.babelrc'],
      ['use-eslint-config', '.eslintrc'],
      'disable-eslint',
      [
        'service-worker-loader',
        {
          entry: path.join(__dirname, 'src/IPFSServiceWorkerGateway/index.js'),
          publicPath: process.env.NODE_ENV === 'development' ? '/' : '/ipfs-browser-gateway/',
        },
      ],
    ];
     

    Install

    npm i rescript-service-worker-loader

    DownloadsWeekly Downloads

    20

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    5.46 kB

    Total Files

    10

    Last publish

    Collaborators

    • linonetwo012