Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 639bb14

Browse files
committed
new version
1 parent 697ecf3 commit 639bb14

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"id": "dbfolder",
33
"name": "DB Folder",
4-
"version": "1.6.3",
5-
"minAppVersion": "0.14.6",
4+
"version": "1.7.0",
5+
"minAppVersion": "0.14.8",
66
"description": "Folder with the capability to store and retrieve data from a folder like database",
77
"author": "RafaelGB",
88
"authorUrl": "https://github.com/RafaelGB/obsidian-bd-folder",

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-dbfolder",
3-
"version": "1.6.3",
3+
"version": "1.7.0",
44
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
55
"main": "main.js",
66
"scripts": {
@@ -43,6 +43,7 @@
4343
"obsidian": "0.14.8",
4444
"rollup": "2.75.5",
4545
"rollup-plugin-typescript2": "0.32.0",
46+
"rollup-plugin-terser": "7.0.2",
4647
"ts-jest": "27.1.4",
4748
"tslib": "2.4.0",
4849
"typescript": "4.7.3",

rollup.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { nodeResolve } from "@rollup/plugin-node-resolve";
22
import commonjs from "@rollup/plugin-commonjs";
33
import json from "@rollup/plugin-json";
44
import typescript2 from "rollup-plugin-typescript2";
5+
import { terser } from 'rollup-plugin-terser';
6+
57
const isProd = (process.env.BUILD === 'production');
68

79
const BASE_CONFIG = {
@@ -20,6 +22,18 @@ const getRollupPlugins = (tsconfig, ...plugins) =>
2022
nodeResolve({ browser: true }),
2123
json(),
2224
commonjs(),
25+
terser({
26+
ecma: 2018,
27+
mangle: { toplevel: true },
28+
compress: {
29+
module: true,
30+
toplevel: true,
31+
unsafe_arrows: true,
32+
drop_console: true,
33+
drop_debugger: true
34+
},
35+
output: { quote_style: 1 }
36+
}),
2337
].concat(plugins);
2438

2539
const PROD_PLUGIN_CONFIG = {

0 commit comments

Comments
 (0)