You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
637 B
32 lines
637 B
const path = require("path");
|
|
|
|
module.exports = {
|
|
mode: "production",
|
|
entry: "./src/index.ts",
|
|
output: {
|
|
filename: "conversion.js",
|
|
path: path.resolve(__dirname, "build"),
|
|
library: 'imageConversion',
|
|
globalObject: "this",
|
|
libraryTarget: 'umd',
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
use: "ts-loader",
|
|
exclude: /node_modules/
|
|
}
|
|
]
|
|
},
|
|
devServer: {
|
|
port: 3000
|
|
},
|
|
resolve: {
|
|
extensions: [".ts", ".js", ".d.ts"],
|
|
alias: {
|
|
"@models": path.resolve(__dirname, "src/models/"),
|
|
"@utils": path.resolve(__dirname, "src/utils/"),
|
|
}
|
|
},
|
|
}; |