Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

craco-worker-loader

chrisinajar1.3kMIT1.0.0

Craco plugin for worker-loader

readme

Craco Worker Loader Plugin

This is a craco plugin that adds worker-loader support to create-react-app version >= 2.

Use react-app-rewired for create-react-app version 1.

Installation

yarn add craco-worker-loader worker-loader

or

npm i --save craco-worker-loader worker-loader

then edit your craco.config.js file to contain the plugin

const WorkerLoaderPlugin = require("craco-worker-loader");

module.exports = function({ env }) {
  return {
    plugins: [{
      plugin: WorkerLoaderPlugin
    }]
  }
};

License

MIT