generated from o/repo-template
24 lines
381 B
JavaScript
24 lines
381 B
JavaScript
|
const path = require('path');
|
||
|
|
||
|
module.exports = {
|
||
|
mode: 'production',
|
||
|
entry: {
|
||
|
main: './src/js/script.ts',
|
||
|
},
|
||
|
output: {
|
||
|
path: path.resolve(__dirname, './dist/js'),
|
||
|
filename: 'script.js',
|
||
|
},
|
||
|
resolve: {
|
||
|
extensions: ['.ts', '.tsx', '.js'],
|
||
|
},
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.tsx?$/,
|
||
|
loader: 'ts-loader',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
};
|