Initial commit: Light Button Card for Home Assistant

This commit is contained in:
nearxos
2026-01-06 19:30:17 +02:00
commit e7166bd3e7
8 changed files with 588 additions and 0 deletions

32
webpack.config.js Normal file
View File

@@ -0,0 +1,32 @@
const path = require('path');
module.exports = {
entry: './src/light-button-card.ts',
output: {
filename: 'light-button-card.js',
path: path.resolve(__dirname, 'dist'),
library: {
type: 'module',
},
},
experiments: {
outputModule: true,
},
module: {
rules: [
{
test: /\.ts$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
resolve: {
extensions: ['.ts', '.js'],
},
mode: 'production',
optimization: {
minimize: false,
},
};