forked from rpp32-boc-igneous/streamFinder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
45 lines (43 loc) · 953 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
33
34
35
36
37
38
39
40
41
42
43
44
45
const path = require("path");
// future utility for page load optimization
// const CompressionPlugin = require("compression-webpack-plugin");
module.exports = {
entry: "./client/Index.jsx",
output: {
path: path.resolve(__dirname, "public"),
filename: "bundle.js",
},
devtool: "inline-source-map",
mode: "development",
optimization: {
usedExports: true,
},
module: {
rules: [
{
test: /\.(jsx|js)$/,
exclude: /node_modules\/(?!(dom7|swiper)\/).*/,
use: {
loader: "babel-loader",
},
},
{
test: /\.(png|jpe?g|gif)$/i,
use: [
{
loader: "file-loader",
},
],
},
{
test: /\.s[ac]ss$/i,
use: ["style-loader", "css-loader", "sass-loader"],
},
],
},
performance: {
maxEntrypointSize: 512000,
maxAssetSize: 512000,
},
// plugins: [new CompressionPlugin()],
};