Reading contents of a file when its being handled by some loader already

34 Views Asked by At

rawloader is used to read a file in webpack. Lets say we want to read the contents of a file thats already being handled by another loader. Can we use the rawloader (or any other technique) to do that?

Lets say .myext has a loader that returns an object. but at the same time i want to read contents of that file. Is there an easy way?

import resource from '/path/res.myext'
0

There are 0 best solutions below