1.0.0 • Published 5 years ago

craco-worker-loader v1.0.0

Weekly downloads
56
License
MIT
Repository
github
Last release
5 years ago

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