Files
oxmysql/webpack.config.js
T
2021-08-15 16:13:48 +02:00

26 lines
610 B
JavaScript

const path = require('path');
const ESLintPlugin = require('eslint-webpack-plugin');
module.exports = {
mode: "production",
target: 'node',
entry: './src/index.ts',
module: {
rules: [
{
test: /\.ts$/,
loader: 'ts-loader',
include: path.resolve(__dirname, 'src'),
exclude: /node_modules/,
},
],
},
resolve: {
extensions: ['.ts'],
},
output: {
filename: 'oxmysql.js',
path: path.resolve(__dirname, 'dist'),
},
plugins: [new ESLintPlugin()],
};