forked from infonomic/remix.infonomic.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathremix.config.js
79 lines (77 loc) · 1.97 KB
/
remix.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
const { flatRoutes } = require('remix-flat-routes')
/**
* @type {import('@remix-run/dev').AppConfig}
*/
module.exports = {
appDirectory: "app",
assetsBuildDirectory: "public/build",
cacheDirectory: "./node_modules/.cache/remix",
ignoredRouteFiles: ['**/*'],
publicPath: "/build/",
serverBuildPath: "build/index.js",
future: {
v2_meta: true,
},
serverDependenciesToBundle: [
/^remark.*/,
/^rehype.*/,
/^unified.*/,
/^micromark.*/,
/^mdast.*/,
/^react-querybuilder.*/,
/^react-day-picker.*/,
/^react-dnd-html5-backend.*/,
/^dnd-core.*/,
/^@react-dnd.*/,
/^@udecode\/plate-ui-dnd.*/,
/^@udecode\/plate.*/,
/^@udecode\/plate-serializer-md.*/,
/^decode-named-character-reference.*/,
/^character-entities.*/,
/^unist-util-stringify-position.*/,
/^character-reference-invalid.*/,
/^is-decimal.*/,
/^is-hexadecimal.*/,
/^is-alphanumerical.*/,
/^copy-to-clipboard.*/,
/^unist-.*/,
/^hast-util-parse-selector.*/,
/^property-information.*/,
/^hast-util-whitespace.*/,
/^space-separated-tokens.*/,
/^comma-separated-tokens.*/,
/^zen-observable-ts.*/,
/^ts-invariant.*/,
/^zen-observable-ts.*/,
/^is-alphabetical.*/,
/^@sindresorhus\/slugify.*/,
/^react-markdown.*/,
/^micromark-util-symbol.*/,
/^zwitch.*/,
/^bail.*/,
/^trough.*/,
/^fault.*/,
/^ccount.*/,
/^react-dnd.*/,
/^parse-entities.*/,
/^stringify-entities.*/,
/^hastscript.*/,
/^ts-invariant.*/,
/^unist-util-map.*/,
/^markdown-table.*/,
/^longest-streak.*/,
/^vfile.*/,
/^vfile-message.*/,
/^@apollo\/client.*/,
/^@sindresorhus\/transliterate.*/,
/^trim-lines.*/,
/^is-plain-obj.*/,
/^react-is.*/,
/^escape-string-regexp.*/
],
routes: async defineRoutes => {
return flatRoutes('routes', defineRoutes, {
ignoredRouteFiles: ['.*', '**/*.css', "**/*.scss", "**/*.css.map", '**/*.test.{js,jsx,ts,tsx}'],
})
},
}