homeassistant-config/custom_frontend_sources/room-glance-card/webpack.config.js

20 lines
509 B
JavaScript

const path = require('path');
module.exports = {
entry: "./src/room-glance-card.ts",
output: {
filename: 'room-glance-card.js',
path: path.resolve(__dirname, 'dist')
},
resolve: {
extensions: [".tsx", ".ts", ".js", ".json"]
},
module: {
rules: [
// all files with a '.ts' or '.tsx' extension will be handled by 'ts-loader'
{test: /\.tsx?$/, use: ["ts-loader"], exclude: /node_modules/}
]
},
mode: "production"
}