diff --git a/application-templates/javascript/assets/index.html b/application-templates/javascript/assets/index.html
index 10498ef..6234737 100644
--- a/application-templates/javascript/assets/index.html
+++ b/application-templates/javascript/assets/index.html
@@ -4,7 +4,6 @@
-
Connect Asset
diff --git a/application-templates/javascript/assets/package.json b/application-templates/javascript/assets/package.json
index 04896f0..367aa7c 100644
--- a/application-templates/javascript/assets/package.json
+++ b/application-templates/javascript/assets/package.json
@@ -6,7 +6,6 @@
"scripts": {
"dev": "vite --port 3000",
"start": "serve public -l 8080 --cors",
- "test": "jest --detectOpenHandles",
"build": "vite build",
"preview": "vite preview",
"serve": "npm run build && serve public -l 3000 --cors",
diff --git a/application-templates/javascript/assets/src/main.js b/application-templates/javascript/assets/src/main.js
index 62a5889..063c21c 100644
--- a/application-templates/javascript/assets/src/main.js
+++ b/application-templates/javascript/assets/src/main.js
@@ -1,4 +1,5 @@
import commercetoolsLogo from '../static/commercetools.svg';
+import './index.css';
export const alertMessage = () => {
alert('Hello! You are now using the Connect Asset Application template!');
diff --git a/application-templates/javascript/assets/vite.config.js b/application-templates/javascript/assets/vite.config.js
index 8645359..98c367c 100644
--- a/application-templates/javascript/assets/vite.config.js
+++ b/application-templates/javascript/assets/vite.config.js
@@ -1,23 +1,12 @@
import { resolve, dirname } from 'path';
-import { fileURLToPath } from 'url';
import { defineConfig } from 'vite';
import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js';
-const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
export default defineConfig({
plugins: [cssInjectedByJsPlugin()],
build: {
outDir: resolve(__dirname, 'public'),
- lib: {
- // Could also be a dictionary or array of multiple entry points
- entry: resolve(__dirname, 'src/main.js'),
-
- name: 'Connector Asset Template',
- formats: ['es', 'umd'],
- // the proper extensions will be added
- fileName: (format) => `connector-asset.${format}.js`,
- },
},
});
diff --git a/application-templates/typescript/assets/index.html b/application-templates/typescript/assets/index.html
index 41f2620..fbdf444 100644
--- a/application-templates/typescript/assets/index.html
+++ b/application-templates/typescript/assets/index.html
@@ -4,7 +4,6 @@
-
Connect Asset
diff --git a/application-templates/typescript/assets/src/main.ts b/application-templates/typescript/assets/src/main.ts
index 62a5889..063c21c 100644
--- a/application-templates/typescript/assets/src/main.ts
+++ b/application-templates/typescript/assets/src/main.ts
@@ -1,4 +1,5 @@
import commercetoolsLogo from '../static/commercetools.svg';
+import './index.css';
export const alertMessage = () => {
alert('Hello! You are now using the Connect Asset Application template!');
diff --git a/application-templates/typescript/assets/vite.config.js b/application-templates/typescript/assets/vite.config.js
index a1bf876..98c367c 100644
--- a/application-templates/typescript/assets/vite.config.js
+++ b/application-templates/typescript/assets/vite.config.js
@@ -1,23 +1,12 @@
import { resolve, dirname } from 'path';
-import { fileURLToPath } from 'url';
import { defineConfig } from 'vite';
import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js';
-const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
export default defineConfig({
plugins: [cssInjectedByJsPlugin()],
build: {
outDir: resolve(__dirname, 'public'),
- lib: {
- // Could also be a dictionary or array of multiple entry points
- entry: resolve(__dirname, 'src/main.ts'),
-
- name: 'Connector Asset Template',
- formats: ['es', 'umd'],
- // the proper extensions will be added
- fileName: (format) => `connector-asset.${format}.js`,
- },
},
});