From b120e5845ebdc9e27a0b80045437109189e60940 Mon Sep 17 00:00:00 2001 From: Parsa Gholipour <12parsa@gmail.com> Date: Sat, 1 Oct 2022 12:59:09 +0330 Subject: [PATCH] Add bundle for cdn --- dist/{sharee.js.js => sharee.js} | 0 package.json | 1 + vite.config.js | 2 +- 3 files changed, 2 insertions(+), 1 deletion(-) rename dist/{sharee.js.js => sharee.js} (100%) diff --git a/dist/sharee.js.js b/dist/sharee.js similarity index 100% rename from dist/sharee.js.js rename to dist/sharee.js diff --git a/package.json b/package.json index c8f01b4..5e8c3de 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "sharee", "private": false, "version": "1.0.6", + "browser": "./dist/sharee.min.js", "main": "./dist/build.js", "module": "./dist/build.js", "types": "./src/lib/main.d.ts", diff --git a/vite.config.js b/vite.config.js index 276e0ba..0ad69d6 100644 --- a/vite.config.js +++ b/vite.config.js @@ -15,7 +15,7 @@ export default defineConfig({ }, rollupOptions: { input: { - 'sharee.js': resolve(__dirname, 'src/build.ts'), + 'sharee': resolve(__dirname, 'src/build.ts'), 'sharee-vue.js': resolve(__dirname, 'src/vue/Sharee.vue'), 'sharee-react.js': resolve(__dirname, 'src/react/Sharee.tsx') },