1 import copy
from 'rollup-plugin-copy';
2 import del
from 'rollup-plugin-delete';
3 import typescript
from 'rollup-plugin-typescript2';
5 const isDevelopmentBuild
= process
.env
.BUILD
=== 'development';
8 input
: ['src/start.ts', 'src/charging-station/StationWorker.ts'],
14 preserveModules
: true,
15 preserveModulesRoot
: 'src'
17 external
: ['crypto', 'perf_hooks', 'fs', 'path', 'poolifier', 'uuid', 'ws', 'winston-daily-rotate-file', 'winston/lib/winston/transports', 'winston', 'worker_threads'],
20 tsconfig
: 'tsconfig.json'
27 { src
: 'src/assets', dest
: 'dist/' }