- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.server.js
More file actions
Latest commit
34 lines (33 loc) · 613 Bytes
/
Copy pathwebpack.server.js
File metadata and controls
34 lines (33 loc) · 613 Bytes
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
const{ merge }=require('webpack-merge');
constwebpackBase=require('./webpack.base');
constpath=require('path');
/**
* @type {import("webpack").Configuration}
*/
constclientConfig={
mode: 'production',
entry: './server/utils.js',
output: {
filename: 'util5.js',
path: path.join(__dirname,'server'),
},
};
module.exports=merge(
{
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-react','@babel/preset-env'],
},
},
},
],
},
},
clientConfig,
);