Home > @lynx-js/rspeedy > Output > inlineScripts

Output.inlineScripts property

The Output.inlineScripts option controls whether to inline scripts into Lynx bundle (.lynx.bundle).

Signature:

inlineScripts?: boolean | undefined;

Remarks

If no value is provided, the default value would be true.

This is different with output.inlineScripts since we normally want to inline scripts in Lynx bundle (.lynx.bundle).

Only background thread scripts can remain non-inlined, whereas the main thread script is always inlined.

Example

Disable inlining background thread scripts.

import { defineConfig } from '@lynx-js/rspeedy'

export default defineConfig({
  output: {
    inlineScripts: false,
  },
})
Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.