generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathwebpack.config.js
32 lines (30 loc) · 819 Bytes
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const path = require('path');
module.exports = {
mode: 'production',
entry: {
chat: './chat_react/src/index.tsx',
},
output: {
filename: '[name].js-bundle.js',
path: path.resolve(__dirname, './static'),
},
module: {
rules: [{
test: /\.(js|jsx|ts|tsx)$/,
exclude: /node_modules/,
loader: 'babel-loader',
options: {
presets: [
'@babel/preset-env',
'@babel/preset-react',
'@babel/preset-typescript',
],
},
},
{
test: /\.css$/i,
use: ['style-loader', 'css-loader', 'sass-loader'],
},
],
},
};