From 5179dfc8be7c31ec07e895c85f7307c96d53a42d Mon Sep 17 00:00:00 2001 From: Peter Savchenko Date: Fri, 21 Nov 2025 19:37:27 +0300 Subject: [PATCH] chore(dev): add dev example playground --- .eslintignore | 4 ++++ index.html | 24 ++++++++++++++++++++++++ vite.config.js | 14 +++++++------- 3 files changed, 35 insertions(+), 7 deletions(-) create mode 100644 .eslintignore create mode 100644 index.html diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 00000000..57a3964d --- /dev/null +++ b/.eslintignore @@ -0,0 +1,4 @@ +*.html +dist/ +node_modules/ + diff --git a/index.html b/index.html new file mode 100644 index 00000000..e72ae718 --- /dev/null +++ b/index.html @@ -0,0 +1,24 @@ + + + + + + Embed Tool | EditorJS + + +
+ + + + diff --git a/vite.config.js b/vite.config.js index 4200de08..024e7dfd 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,18 +1,18 @@ -import path from "path"; +import path from 'path'; import cssInjectedByJsPlugin from "vite-plugin-css-injected-by-js"; import * as pkg from "./package.json"; import dts from 'vite-plugin-dts'; -const NODE_ENV = process.argv.mode || "development"; +const NODE_ENV = process.argv.mode || 'development'; const VERSION = pkg.version; export default { build: { copyPublicDir: false, lib: { - entry: path.resolve(__dirname, "src", "index.ts"), - name: "Embed", - fileName: "embed", + entry: path.resolve(__dirname, 'src', 'index.ts'), + name: 'Embed', + fileName: 'embed', }, }, define: { @@ -22,7 +22,7 @@ export default { plugins: [cssInjectedByJsPlugin(), dts({ - tsconfigPath: './tsconfig.json' - }) + tsconfigPath: './tsconfig.json', + }), ], };