Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGB committed Jun 9, 2022
1 parent 697ecf3 commit 639bb14
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"id": "dbfolder",
"name": "DB Folder",
"version": "1.6.3",
"minAppVersion": "0.14.6",
"version": "1.7.0",
"minAppVersion": "0.14.8",
"description": "Folder with the capability to store and retrieve data from a folder like database",
"author": "RafaelGB",
"authorUrl": "https://github.com/RafaelGB/obsidian-bd-folder",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-dbfolder",
"version": "1.6.3",
"version": "1.7.0",
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
"main": "main.js",
"scripts": {
Expand Down Expand Up @@ -43,6 +43,7 @@
"obsidian": "0.14.8",
"rollup": "2.75.5",
"rollup-plugin-typescript2": "0.32.0",
"rollup-plugin-terser": "7.0.2",
"ts-jest": "27.1.4",
"tslib": "2.4.0",
"typescript": "4.7.3",
Expand Down
14 changes: 14 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { nodeResolve } from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import json from "@rollup/plugin-json";
import typescript2 from "rollup-plugin-typescript2";
import { terser } from 'rollup-plugin-terser';

const isProd = (process.env.BUILD === 'production');

const BASE_CONFIG = {
Expand All @@ -20,6 +22,18 @@ const getRollupPlugins = (tsconfig, ...plugins) =>
nodeResolve({ browser: true }),
json(),
commonjs(),
terser({
ecma: 2018,
mangle: { toplevel: true },
compress: {
module: true,
toplevel: true,
unsafe_arrows: true,
drop_console: true,
drop_debugger: true
},
output: { quote_style: 1 }
}),
].concat(plugins);

const PROD_PLUGIN_CONFIG = {
Expand Down

0 comments on commit 639bb14

Please sign in to comment.