rayjs/examples/ts_game/webpack.config.js

25 lines
440 B
JavaScript
Raw Permalink Normal View History

const path = require('path');
module.exports = {
entry: './src/index.ts',
devtool: false,
target: "node",
mode: 'production',
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
output: {
2023-05-27 09:35:08 +00:00
filename: 'main.js',
path: path.resolve(__dirname, '.'),
},
};