tenebrous-sheets/static/scripts/ts/webpack.config.js

31 lines
590 B
JavaScript

const webpack = require('webpack');
const path = require('path');
module.exports = {
entry: "./src/index.ts",
mode: "development",
output: {
path: path.resolve(__dirname, 'build'),
filename: 'bundle.js'
},
devtool: 'inline-source-map',
module: {
rules: [
{
test: /\.ts$/,
include: /src|_proto/,
exclude: /node_modules/,
loader: "ts-loader"
}
]
},
resolve: {
extensions: [".ts", ".js"]
},
// plugins: [
// new webpack.DefinePlugin({
// 'USE_TLS': process.env.USE_TLS !== undefined
// })
// ]
};