diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2022-07-15 23:18:36 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2022-07-15 23:18:36 -0400 |
| commit | 982d2cb09f9793fbdfcf8a1d2b2b27e4fd272469 (patch) | |
| tree | fce441de3dc8efbb8cb521deb12c0b28f5f8d968 /rollup.config.js | |
| parent | 0f290ef69316311eda5179f2d64ee22be822c8e7 (diff) | |
Read database from local file for TESTING purposes
Diffstat (limited to 'rollup.config.js')
| -rw-r--r-- | rollup.config.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rollup.config.js b/rollup.config.js index f97c6cc..a4ce770 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -6,6 +6,7 @@ import { terser } from 'rollup-plugin-terser'; import sveltePreprocess from 'svelte-preprocess'; import typescript from '@rollup/plugin-typescript'; import css from 'rollup-plugin-css-only'; +import json from '@rollup/plugin-json'; const production = !process.env.ROLLUP_WATCH; @@ -78,7 +79,10 @@ export default { // If we're building for production (npm run build // instead of npm run dev), minify - production && terser() + production && terser(), + + // Reading from local json should only happen in development - Furkan + !production && json() ], watch: { clearScreen: false |
