forked from waves-exchange/neutrino-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
executable file
·34 lines (31 loc) · 938 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
const withSass = require('@zeit/next-sass');
const withTM = require('next-transpile-modules');
const path = require('path');
const srcPath = './src';
module.exports = withSass(
withTM({
webpack: config => {
config.resolve.modules.push(srcPath);
config.module.rules.push({
test: /\.(eot|woff|woff2|ttf|ico|svg|png|jpg|gif)$/,
use: {
loader: 'file-loader',
options: {
name: '[name].[ext]',
},
},
});
return config;
},
sassLoaderOptions: {
includePaths: [srcPath],
},
transpileModules: ['yii-steroids', 'lodash-es'],
exportPathMap: async function() {
return {
'/': { page: '/' },
'/staking': { page: '/staking' },
};
},
})
);