Back to Serwist

include

docs-next-configuring-include.md

latest568 B
Original Source

include

First added

Workbox

About

One or more specifiers used to include assets from the precache manifest. This is interpreted following the same rules as webpack’s standard include option.

Usage

webpack.config.js

new InjectManifest({
  include: [
    /\.(js|css|json)$/, 
    ({ asset }) => asset.name.startsWith("client/"),
  ],
});

More resources

Here is a list of resources you can read to learn more about include: