How to use the mwp-config.paths.output function in mwp-config

To help you get started, we’ve selected a few mwp-config examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github meetup / meetup-web-platform / packages / mwp-sw-plugin / src / index.js View on Github external
handler: (request, h) => {
			const { localeCode } = request.params;
			const swPath = path.resolve(
				buildPaths.output.browser,
				localeCode,
				'asset-service-worker.js'
			);
			return h.file(swPath);
		},
	});

mwp-config

All the config you might ever need for a MWP app

MIT
Latest version published 1 year ago

Package Health Score

39 / 100
Full package analysis