Last active
March 3, 2022 08:09
-
-
Save Moizsohail/6af0365efbc79d1067fb28cd7580f242 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { nodeResolve } from "@rollup/plugin-node-resolve"; | |
import typescript from "@rollup/plugin-typescript"; | |
const config = [ | |
{ | |
input: ["./src/chrome/content.ts"], | |
output: { | |
file: "dist/static/js/content.js", | |
name: "content", | |
format: "iife", | |
}, | |
plugins: [nodeResolve(), typescript()], | |
}, | |
{ | |
input: ["./src/chrome/background.ts"], | |
output: { | |
file: "dist/static/js/background.js", | |
name: "content", | |
format: "iife", | |
}, | |
plugins: [nodeResolve(), typescript()], | |
}, | |
]; | |
export default config; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment