Setup node package

This commit is contained in:
dunak-debug committed 2021-08-15 16:13:48 +02:00
1 parent 91e3af5a4c
commit 1f675b44c4
8 files changed
+791

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
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()],
};