rayjs/examples/ts_game/webpack.config.js

28 lines
493 B
JavaScript
Raw Normal View History

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