OCR-Form-Tools/config/webpack.common.js

32 строки
715 B
JavaScript
Исходник Обычный вид История

const path = require("path");
module.exports = {
node: {
__dirname: false,
},
target: "electron-main",
entry: "./src/electron/main.ts",
module: {
rules: [
{
test: /\.ts?$/,
use: [{
loader: "ts-loader",
options: {
compilerOptions: {
noEmit: false
}
}
}],
exclude: /node_modules/
}
]
},
resolve: {
extensions: [".ts", ".js"]
},
output: {
filename: "main.js",
path: path.resolve(__dirname, "../build")
}
}