homeassistant-config/custom_frontend_sources/state-card-custom-cover/webpack.config.js

20 lines
523 B
JavaScript

const path = require('path');
module.exports = {
entry: "./src/state-card-custom-cover.ts",
output: {
filename: 'state-card-custom-cover.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"
}