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.
27 lines
558 B
27 lines
558 B
import { resolve } from 'path'
|
|
import { Configuration } from 'webpack'
|
|
|
|
const config: Configuration = {
|
|
mode: 'production',
|
|
entry: {
|
|
communicator: `${__dirname}/index.ts`
|
|
},
|
|
output: {
|
|
path: resolve(__dirname, '../../dist'),
|
|
filename: '[name].js',
|
|
},
|
|
resolve: {
|
|
extensions: ['.ts'],
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.ts(x?)$/,
|
|
exclude: /node_modules/,
|
|
use: 'ts-loader',
|
|
},
|
|
],
|
|
},
|
|
}
|
|
|
|
export default config
|