37 lines
620 B
JavaScript
37 lines
620 B
JavaScript
const path = require('path');
|
|
|
|
module.exports =
|
|
{
|
|
mode: "development",
|
|
entry:
|
|
{
|
|
xpathTrainer: "./src/xpathTrainer.ts"
|
|
},
|
|
output:
|
|
{
|
|
path: path.resolve(__dirname, "public"),
|
|
filename: "JS/[name].app.js",
|
|
},
|
|
resolve: {
|
|
extensions: ['.tsx', '.ts', '.js'],
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
use: 'ts-loader',
|
|
exclude: /node_modules/,
|
|
},
|
|
],
|
|
},
|
|
devServer: {
|
|
static: path.join(__dirname, "public"),
|
|
client: {
|
|
overlay: {
|
|
errors: true,
|
|
warnings: false,
|
|
runtimeErrors: false,
|
|
},
|
|
},
|
|
},
|
|
}; |