S
S
solseniordesigner2019-07-29 14:31:30
JavaScript
solseniordesigner, 2019-07-29 14:31:30

How to connect worker-loader to create-react-app project?

Tell me, please ...
Where to shove

{
  module: {
    rules: [
      {
        test: /\.worker\.js$/,
        use: { loader: 'worker-loader' }
      }
    ]
  }
}

It says on npmjs that this should be put in webpack.config.js. But I do not understand in what and how. Install - installed, for the maiden. What to do with webpack - I do not understand.
create-react-app has a strange structure for me. Help me understand, good people.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SvinkaBacilka, 2020-05-21
@SvinkaBacilka

create-react-app must have a config file, most likely there will be a separate setting for webpack

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question