mirror of
https://github.com/zrwusa/data-structure-typed.git
synced 2024-11-10 08:04:05 +00:00
29 lines
662 B
JavaScript
29 lines
662 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = [
|
|
{
|
|
mode:'production',
|
|
entry: './src/index.ts',
|
|
target: 'web',
|
|
output: {
|
|
filename: 'bundle.min.js',
|
|
path: path.resolve(__dirname, 'umd'),
|
|
library: 'dataStructureTyped',
|
|
libraryTarget: 'umd',
|
|
},
|
|
resolve: {
|
|
extensions: ['.ts', '.js'],
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.ts$/,
|
|
use: 'ts-loader',
|
|
exclude: /node_modules/,
|
|
}
|
|
],
|
|
},
|
|
devtool: 'source-map',
|
|
},
|
|
];
|