|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
787 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | MIT License http://www.opensource.org/licenses/mit-license.php
|
|---|
| 3 | Author Tobias Koppers @sokra
|
|---|
| 4 | */
|
|---|
| 5 |
|
|---|
| 6 | "use strict";
|
|---|
| 7 |
|
|---|
| 8 | const ArrayPushCallbackChunkFormatPlugin = require("../javascript/ArrayPushCallbackChunkFormatPlugin");
|
|---|
| 9 | const EnableChunkLoadingPlugin = require("../javascript/EnableChunkLoadingPlugin");
|
|---|
| 10 |
|
|---|
| 11 | /** @typedef {import("../Compiler")} Compiler */
|
|---|
| 12 |
|
|---|
| 13 | class WebWorkerTemplatePlugin {
|
|---|
| 14 | /**
|
|---|
| 15 | * Applies the plugin by registering its hooks on the compiler.
|
|---|
| 16 | * @param {Compiler} compiler the compiler instance
|
|---|
| 17 | * @returns {void}
|
|---|
| 18 | */
|
|---|
| 19 | apply(compiler) {
|
|---|
| 20 | compiler.options.output.chunkLoading = "import-scripts";
|
|---|
| 21 | new ArrayPushCallbackChunkFormatPlugin().apply(compiler);
|
|---|
| 22 | new EnableChunkLoadingPlugin("import-scripts").apply(compiler);
|
|---|
| 23 | }
|
|---|
| 24 | }
|
|---|
| 25 |
|
|---|
| 26 | module.exports = WebWorkerTemplatePlugin;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.