You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.
I'm also trying to output all these generated files (I have like 5 workers) inside their own dist folder or something but I can't for the life of me get it working. I've looked at #36 and saw this but it doesn't do anything for me.
Am I missing something?
The text was updated successfully, but these errors were encountered:
I realized that the import call it calling the worker-loader module itself and bypassing the webpack config, and then the webpack config will then look for those files as normal, regardless of the import.
I also was able to put them all in their own folder by adding a path before the name.
These are my imports in case anyone is looking to fix this in the future. May also fix #118
import rowsExportWorker from 'worker-loader?name=/dist/rows.export.worker.js&inline=true!../workers/rows.export.worker';
import columnsExportWorker from 'worker-loader?name=/dist/columns.export.worker.js&inline=true!../workers/columns.export.worker';
import pdfExportWorker from 'worker-loader?name=/dist/pdf.export.worker.js&inline=true!../workers/pdf.export.worker';
import csvExportWorker from 'worker-loader?name=/dist/csv.export.worker.js&inline=true!../workers/csv.export.worker';
import excelExportWorker from 'worker-loader?name=/dist/excel.export.worker.js&inline=true!../workers/excel.export.worker';
This is how I'm importing my worker.
This is the output of
npm run build
:Running on Webpack ^3.10.0
I'm also trying to output all these generated files (I have like 5 workers) inside their own
dist
folder or something but I can't for the life of me get it working. I've looked at #36 and saw this but it doesn't do anything for me.Am I missing something?
The text was updated successfully, but these errors were encountered: