roulette-wheel/webpack.config.prod.js

28 lines
578 B
JavaScript
Raw Normal View History

2021-12-29 20:53:47 +01:00
const path = require('path');
module.exports = {
mode: "production",
entry: './src/app.ts',
output: {
2022-01-13 22:51:41 +01:00
path:path.resolve(__dirname, "dist/scripts"),
2021-12-29 20:53:47 +01:00
filename: "bundle.js",
2022-01-13 21:12:18 +01:00
publicPath: '/dist/'
2021-12-29 20:53:47 +01:00
},
module: {
rules: [
{
2022-01-13 21:12:18 +01:00
test: /\.ts$/,
2021-12-29 20:53:47 +01:00
use: 'ts-loader',
exclude: /node_modules/
}
]
},
resolve: {
extensions: ['.ts', '.js']
},
devServer: {
static: {
directory: path.join(__dirname, "./"),
},
},
};