Skip to content

Instantly share code, notes, and snippets.

@fserb
Created July 2, 2021 04:18
Show Gist options
  • Save fserb/446fe26b5a78957c83793bf159e5bed3 to your computer and use it in GitHub Desktop.
Save fserb/446fe26b5a78957c83793bf159e5bed3 to your computer and use it in GitHub Desktop.
Build lit into a single javascript file
{
"name": "lit",
"license": "MIT",
"scripts": {
"build": "npm install && rollup -c"
},
"dependencies": {
"@rollup/plugin-node-resolve": "^13.0.0",
"lit": "^2.0.0-rc.2",
"rollup": "^2.52.7"
}
}
import resolve from '@rollup/plugin-node-resolve';
export default {
input: './node_modules/lit/index.js',
plugins: [
resolve({
browser: true,
}),
],
preserveEntrySignatures: true,
output: {
inlineDynamicImports: true,
format: 'es',
name: 'main',
sourcemap: false,
file: 'lit.js'
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment