mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 19:42:56 +01:00
Improve README, webpack consumption
This commit is contained in:
parent
7c18d303e6
commit
118c0d5783
5 changed files with 65 additions and 16 deletions
|
|
@ -1,17 +1,17 @@
|
|||
const webpack = require('webpack');
|
||||
|
||||
class AddWorkerEntryPointPlugin {
|
||||
constructor(webpack, {
|
||||
constructor({
|
||||
id,
|
||||
entry,
|
||||
filename,
|
||||
chunkFilename = undefined,
|
||||
plugins = undefined,
|
||||
}) {
|
||||
this.webpack = webpack;
|
||||
this.options = { id, entry, filename, chunkFilename, plugins };
|
||||
}
|
||||
|
||||
apply(compiler) {
|
||||
const webpack = this.webpack;
|
||||
const { id, entry, filename, chunkFilename, plugins } = this.options;
|
||||
compiler.hooks.make.tapAsync('AddWorkerEntryPointPlugin', (compilation, callback) => {
|
||||
const outputOptions = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue