Created
May 12, 2020 03:31
-
-
Save amazzalel-habib/5636db17a6b08f418362148402e8c9a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
entry: { | |
app: './src/index.tsx', | |
"editor.worker": 'monaco-editor-core/esm/vs/editor/editor.worker.js', | |
"todoLangWorker": './src/todo-lang/todolang.worker.ts' | |
}, | |
output: { | |
globalObject: 'self', | |
filename: (chunkData) => { | |
switch (chunkData.chunk.name) { | |
case 'editor.worker': | |
return 'editor.worker.js'; | |
case 'todoLangWorker': | |
return "todoLangWorker.js" | |
default: | |
return 'bundle.[hash].js'; | |
} | |
}, | |
path: path.resolve(__dirname, 'dist') | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment