LitElement example

This commit is contained in:
2020-05-06 09:10:42 +02:00
parent fbea880b64
commit a77473fad4
13 changed files with 8643 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: './src/index.ts',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js',
},
// Currently we need to add '.ts' to the resolve.extensions array.
resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx'],
},
// Add the loader for .ts files.
module: {
rules: [
{
test: /\.tsx?$/,
loader: 'awesome-typescript-loader',
},
],
},
plugins: [
new HtmlWebpackPlugin({
template: './src/index.html',
})
],
};