mirror of
https://github.com/kevinveenbirkenbach/roulette-wheel.git
synced 2024-11-21 17:51:05 +01:00
28 lines
578 B
JavaScript
28 lines
578 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
mode: "production",
|
|
entry: './src/app.ts',
|
|
output: {
|
|
path:path.resolve(__dirname, "dist/scripts"),
|
|
filename: "bundle.js",
|
|
publicPath: '/dist/'
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.ts$/,
|
|
use: 'ts-loader',
|
|
exclude: /node_modules/
|
|
}
|
|
]
|
|
},
|
|
resolve: {
|
|
extensions: ['.ts', '.js']
|
|
},
|
|
devServer: {
|
|
static: {
|
|
directory: path.join(__dirname, "./"),
|
|
},
|
|
},
|
|
}; |