-
Notifications
You must be signed in to change notification settings - Fork 3
/
next.config.js
executable file
·34 lines (31 loc) · 1.03 KB
/
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
/* eslint-disable */
const withTM = require('next-transpile-modules')([
'@rentfuse-labs/neo-wallet-adapter-base',
'@rentfuse-labs/neo-wallet-adapter-react',
'@rentfuse-labs/neo-wallet-adapter-wallets',
'@rentfuse-labs/neo-wallet-adapter-ant-design',
'@rentfuse-labs/neo-wallet-adapter-neoline',
'@rentfuse-labs/neo-wallet-adapter-o3',
'@rentfuse-labs/neo-wallet-adapter-walletconnect',
'@rentfuse-labs/neo-wallet-adapter-onegate',
'@cityofzion/wallet-connect-sdk-core',
'@cityofzion/neon-core',
]);
const withPlugins = require('next-compose-plugins');
const withAntdLess = require('next-plugin-antd-less');
const lessToJS = require('less-vars-to-js');
const fs = require('fs');
const path = require('path');
const pluginAntdLess = withAntdLess({
lessLoaderOptions: {
lessOptions: {
javascriptEnabled: true,
modifyVars: lessToJS(fs.readFileSync(path.resolve(__dirname, './src/styles/antd-custom.less'), 'utf8')),
},
},
});
module.exports = withPlugins([[pluginAntdLess], withTM], {
webpack(config) {
return config;
},
});