-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcraco.config.js
46 lines (45 loc) · 1.16 KB
/
craco.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
const cracoAlias = require('craco-alias')
const { sentryWebpackPlugin } = require('@sentry/webpack-plugin')
module.exports = {
content: ['./src/**/*.{html,js}'],
eslint: {
enable: false,
},
theme: {
extend: {},
},
plugins: [
{
plugin: cracoAlias,
options: {
source: 'tsconfig',
baseUrl: '.',
tsConfigPath: './tsconfig.json',
},
},
],
webpack: {
configure: {
resolve: {
fallback: {
util: false,
assert: false,
http: false,
https: false,
os: false,
stream: false,
},
},
},
plugins: [
sentryWebpackPlugin({
org: process.env.SENTRY_ORG || 'open-dollar',
project: process.env.SENTRY_PROJECT || 'open-dollar',
authToken: process.env.SENTRY_AUTH_TOKEN,
sourcemaps: {
ignore: ['node_modules'],
}
}),
],
},
}