mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 14:38:50 +00:00
Setup node package
This commit is contained in:
8 files changed
+791
No files matched your search
@@ -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()],
|
||||
};
|
||||
Reference in new issue
Block a user