mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 22:21:51 +00:00
26 lines
610 B
JavaScript
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()],
|
|
}; |