-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrspack.config.js
55 lines (55 loc) · 1.39 KB
/
rspack.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
46
47
48
49
50
51
52
53
54
55
module.exports = () => {
if (global.NX_GRAPH_CREATION === undefined) {
const { createConfig } = require('@nx/angular-rspack');
return createConfig(
{
options: {
root: __dirname,
name: 'rspack-csr-css',
index: './src/index.html',
assets: [
{
input: '../shared/assets/src/assets',
glob: '**/*',
output: 'assets',
},
{ glob: '**/*', input: 'public' },
],
styles: ['../shared/styles/src/index.scss', './src/styles.css'],
polyfills: ['zone.js'],
main: './src/main.ts',
outputPath: {
base: './dist',
browser: './dist/static',
},
sourceMap: {
scripts: true,
styles: true,
},
outputHashing: 'none',
tsConfig: './tsconfig.app.json',
skipTypeChecking: false,
devServer: {
host: '127.0.0.1',
port: 8080,
proxyConfig: './proxy.conf.json',
},
define: {
nxAngularRspack: '"20.6.2"',
},
},
},
{
development: {
options: {
extractLicenses: false,
optimization: false,
namedChunks: true,
vendorChunk: true,
},
},
}
);
}
return {};
};