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`, - }, }, });