mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-06-23 07:55:07 +00:00
28 lines
587 B
JavaScript
28 lines
587 B
JavaScript
import run from "@rollup/plugin-run";
|
|
import typescript from '@rollup/plugin-typescript';
|
|
import json from '@rollup/plugin-json';
|
|
import copy from 'rollup-plugin-copy'
|
|
|
|
|
|
const isDev = process.env.NODE_ENV !== "production";
|
|
|
|
export default {
|
|
input: "src/index.ts",
|
|
output: {
|
|
file: "dist/bundle.js",
|
|
format: "es",
|
|
},
|
|
watch: {
|
|
include: [ './src/**', '../shared-operations/src/**' ]
|
|
},
|
|
plugins: [
|
|
json(),
|
|
typescript(),
|
|
copy({
|
|
targets: [
|
|
{ src: '../shared-operations/public', dest: 'dist' },
|
|
]
|
|
}),
|
|
isDev && run()
|
|
],
|
|
}; |