I have codes to copy assets when building. I'm wondering what's the best way to do the same thing with Yarn Plug'n'Play since node_modules does not exist.
new CopyWebpackPlugin([
{ from: 'node_modules/pdfjs-dist/cmaps/', to: 'static/cmaps/' },
]),
yarn cache dir tells me the directory and also there's a package location in .pnp.js.
["pdfjs-dist", new Map([
["2.0.943", {
packageLocation: path.resolve(__dirname, "../../Library/Caches/Yarn/v3/npm-pdfjs-dist-2.0.943-32fb9a2d863df5a1d89521a0b3cd900c16e7edde/node_modules/pdfjs-dist/"),
Should I somehow parse the file and copy as I did before? Or is there better way?