mirror of
https://github.com/zoriya/libpgs-js.git
synced 2026-08-27 00:00:51 +00:00
25 lines
512 B
JavaScript
25 lines
512 B
JavaScript
const path = require("path");
|
|
|
|
module.exports = {
|
|
mode: 'production',
|
|
entry: './src/libpgs.ts',
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
use: 'ts-loader',
|
|
exclude: /node_modules/,
|
|
},
|
|
],
|
|
},
|
|
resolve: {
|
|
extensions: ['.tsx', '.ts', '.js'],
|
|
},
|
|
output: {
|
|
path: path.resolve(__dirname, 'dist'),
|
|
filename: 'libpgs.js',
|
|
library: 'libpgs',
|
|
libraryTarget: 'umd'
|
|
}
|
|
}
|