forked from mydoge-com/mydogemask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
35 lines (34 loc) · 1018 Bytes
/
next.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
/* eslint-disable no-param-reassign */
const { withNativebase } = require('@native-base/next-adapter');
const path = require('path');
module.exports = withNativebase({
dependencies: ['@native-base/icons', 'react-native-web-linear-gradient'],
nextConfig: {
webpack: (config) => {
config.module.rules.push({
test: /\.ttf$/,
loader: 'url-loader', // or directly file-loader
include: path.resolve(__dirname, 'node_modules/@native-base/icons'),
});
config.resolve.alias = {
...(config.resolve.alias || {}),
'react-native$': 'react-native-web',
'react-native-linear-gradient': 'react-native-web-linear-gradient',
};
config.resolve.extensions = [
'.web.js',
'.web.ts',
'.web.tsx',
...config.resolve.extensions,
];
config.devtool = 'cheap-module-source-map';
return config;
},
images: {
unoptimized: true,
},
eslint: {
ignoreDuringBuilds: true,
},
},
});