parent
bc3c601b59
commit
7bb082de23
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,31 @@ |
||||
const path = require("path"); |
||||
|
||||
module.exports = { |
||||
mode: process.NODE_ENV || "development", |
||||
entry: "./src", |
||||
target: "node", |
||||
output: { |
||||
path: path.resolve(__dirname, "dist"), |
||||
filename: "index.js" |
||||
}, |
||||
module: { |
||||
rules: [ |
||||
{ |
||||
test: /\.tsx?$/, |
||||
use: "ts-loader", |
||||
exclude: /node_modules/ |
||||
}, |
||||
{ |
||||
test: /\.(png|jpe?g|gif|svg)$/i, |
||||
use: [{ loader: "file-loader" }] |
||||
}, |
||||
{ |
||||
test: /\.node/i, |
||||
use: [{ loader: "node-loader" }, { loader: "file-loader" }] |
||||
} |
||||
] |
||||
}, |
||||
resolve: { |
||||
extensions: [".tsx", ".ts", ".js"] |
||||
} |
||||
}; |
Loading…
Reference in new issue