Skip to content

Instantly share code, notes, and snippets.

@altbodhi
Created February 15, 2021 09:02
Show Gist options
  • Save altbodhi/66a271d9b1796cb1fad6c753808e0b24 to your computer and use it in GitHub Desktop.
Save altbodhi/66a271d9b1796cb1fad6c753808e0b24 to your computer and use it in GitHub Desktop.
svelte rolling config for multi pages (for example for mixin to asp.net core webapp)
const page = "syncSystems";
// "index";
export default {
input: `src/${page}.ts`,
output: {
sourcemap: true,
exports : 'named',
format: 'iife',
name: `${page}`,
file: production ? `../wwwroot/pages/${page}.js` : 'public/build/index.js'
},
plugins: [
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment