mirror of
https://github.com/zsviczian/obsidian-excalidraw-plugin.git
synced 2025-08-06 05:46:28 +00:00
playing with build config
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
"dev": "rollup --config rollup.config.js -w",
|
||||
"build": "rollup --config rollup.config.js --environment BUILD:production"
|
||||
"build": "rollup --config rollup.config.js --environment NODE_ENV:production"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
|
||||
@@ -6,7 +6,7 @@ import copy from 'rollup-plugin-copy';
|
||||
import minify from 'rollup-plugin-minify';
|
||||
|
||||
|
||||
const isProd = (process.env.BUILD === 'production');
|
||||
const isProd = (process.env.NODE_ENV === "production");
|
||||
|
||||
export default {
|
||||
input: 'src/main.ts',
|
||||
|
||||
@@ -79,7 +79,7 @@ export default class ExcalidrawView extends ItemView {
|
||||
UIOptions: {
|
||||
canvasActions: {
|
||||
loadScene: false,
|
||||
saveScene: true,
|
||||
saveScene: false,
|
||||
saveAsScene: false
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user