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