-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
46 lines (36 loc) · 1.1 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
35
36
37
38
39
40
41
42
43
44
45
46
/* eslint-disable */
const withTs = require('@zeit/next-typescript')
//const withCSS = require('@zeit/next-css')
const withLess = require('@zeit/next-less')
//const { exportPathMap } = require('nextjs-export-path-map')
module.exports = {
...withTs(),
// ...withLess({
// lessLoaderOptions: {
// javascriptEnabled: true,
// },
// })
}
// // fix: prevents error when .less files are required by node
// if (typeof require !== 'undefined') {
// require.extensions['.less'] = (file) => {}
// }
// {
// ...withLess({
// lessLoaderOptions: {
// javascriptEnabled: true,
// },
// }),
// ...withTs()
// //exportPathMap
// }
// defaultLoaders.babel.options.plugins.push(["transform-define", "./env-config.js"])
// config.module.rules.push({
// test: /\.+(js|jsx)$/,
// use: defaultLoaders.babel,
// include: [internalNodeModulesRegExp],
// })
// function override(config, env) {
// if (!env.isServer) config = injectBabelPlugin(['import', { libraryName: 'antd', style: true }], config);
// };
// ["transform-runtime", ["import", { "libraryName": "antd", "style": true }]]