Skip to content

Added customization of manifest using svelte.config.js #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SergeantWeb
Copy link

Simple feature added :

You can now customize manifest using svelte.config.json

Usage example

Customize the manifest to name our extension Test extension

// your-project/sveltekit.config.js
import adapter from 'sveltekit-adapter-browser-extension'

/** @type {import('@sveltejs/kit').Config} */
const config = {
	kit: {
		adapter: adapter({
			manifest: {
				name: "Test extension" // Customize app name in manifest
			},
		}),
		appDir: 'ext',
		prerender: {
			default: true
		}
	}
};

export default config;

@antony
Copy link
Owner

antony commented May 25, 2023

I like the idea of this. I might need to create a new PR as the project now supports multiple manifest versions since this PR was made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants