MCPcopy
hub / github.com/dabbott/react-native-express / withRawExampleLoader

Function withRawExampleLoader

next.config.js:26–40  ·  view source on GitHub ↗
(nextConfig)

Source from the content-addressed store, hash-verified

24})
25
26const withRawExampleLoader = (nextConfig) => ({
27 ...nextConfig,
28 webpack(config, options) {
29 config.module.rules.push({
30 test: /examples(\/|\\)files(\/|\\).*$/,
31 use: 'raw-loader',
32 })
33
34 if (typeof nextConfig.webpack === 'function') {
35 return nextConfig.webpack(config, options)
36 }
37
38 return config
39 },
40})
41
42module.exports = withRawExampleLoader(
43 withGuidebooks(

Callers 1

next.config.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected