-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
42 lines (41 loc) · 1.19 KB
/
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
33
34
35
36
37
38
39
40
41
42
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: {
// austin: path.resolve(__dirname, './search-bar-booking-tool/client/src'),
// kat: path.resolve(__dirname, './overview-amenities/client/src'),
// matthew: path.resolve(__dirname, './Reviews/client/src'),
steve: path.resolve(__dirname, './carousel-recommend-listings/src/components')
},
output: {
path: path.resolve(__dirname, './dist'),
filename: "[name]-bundle.js"
},
plugins: [new HtmlWebpackPlugin({template: 'proxy-template.html'})],
mode: 'development',
module: {
rules: [
{
test: /\.js[x]?/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-react', '@babel/preset-env', {'plugins': ['@babel/plugin-proposal-class-properties', '@babel/plugin-transform-runtime']}]
}
}
},
{
test: /\.(scss|css)$/,
loaders: ['style-loader', 'css-loader'],
},
{
test: /\.svg$/,
loader: 'svg-inline-loader'
}
],
},
resolve: {
extensions: ['.js', '.jsx'],
},
};