diff --git a/package.json b/package.json index 0120910..9c16d80 100644 --- a/package.json +++ b/package.json @@ -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": "", diff --git a/rollup.config.js b/rollup.config.js index 93481f9..ebe99c0 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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', diff --git a/src/view.ts b/src/view.ts index a7f9a3c..70bf295 100644 --- a/src/view.ts +++ b/src/view.ts @@ -79,7 +79,7 @@ export default class ExcalidrawView extends ItemView { UIOptions: { canvasActions: { loadScene: false, - saveScene: true, + saveScene: false, saveAsScene: false }, },