mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-26 13:19:49 +07:00
* Improve prompt API sample * Render response as markdown * Fix initial maxK and temperature values * Add privacy statement (for webstore submission) * Regenerate key and trial token * fix formatting errors * Update functional-samples/ai.gemini-on-device/sidepanel/index.js Update maxTemperature Co-authored-by: Thomas Steiner <tomac@google.com> * Update functional-samples/ai.gemini-on-device/sidepanel/index.js Better string comparison Co-authored-by: Thomas Steiner <tomac@google.com> --------- Co-authored-by: Thomas Steiner <tomac@google.com>
30 lines
589 B
JavaScript
30 lines
589 B
JavaScript
import { nodeResolve } from '@rollup/plugin-node-resolve';
|
|
import commonjs from '@rollup/plugin-commonjs';
|
|
import copy from 'rollup-plugin-copy';
|
|
|
|
export default [
|
|
{
|
|
input: 'sidepanel/index.js',
|
|
output: {
|
|
dir: 'dist/sidepanel',
|
|
format: 'iife',
|
|
},
|
|
plugins: [
|
|
nodeResolve({
|
|
jsnext: true,
|
|
main: true,
|
|
browser: true
|
|
}),
|
|
commonjs(),
|
|
copy({
|
|
targets: [
|
|
{
|
|
src: ['manifest.json', 'background.js', 'sidepanel', 'images'],
|
|
dest: 'dist'
|
|
}
|
|
]
|
|
})
|
|
]
|
|
}
|
|
];
|