Selector/Selector.Web/webpack.common.js
2021-10-23 22:16:37 +01:00

25 lines
591 B
JavaScript

const path = require('path');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
module.exports = {
entry: {
index: './scripts/index.ts',
},
module: {
rules: [
{
test: /\.tsx?$/,
loader: 'ts-loader',
exclude: /node_modules/,
}
]
},
plugins: [
new CleanWebpackPlugin()
],
resolve: { extensions: ["*", ".js", ".jsx", ".ts", ".tsx"] },
output: {
filename: '[name].bundle.js',
path: path.resolve(__dirname, 'wwwroot/js')
}
};