/
next.config.js
44 lines (39 loc) 路 1.08 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
const withCss = require('@zeit/next-css')
// fix: prevents error when .css files are required by node
if (typeof require !== 'undefined') {
require.extensions['.css'] = file => {}
}
module.exports = withCss({
publicRuntimeConfig: {
offlineMode: !!process.env.OFFLINE,
},
})
// /* eslint-disable */
// const withLess = require('@zeit/next-less')
// // fix: prevents error when .less files are required by node
// if (typeof require !== 'undefined') {
// require.extensions['.less'] = (file) => {}
// }
// module.exports = withLess({
// publicRuntimeConfig: {
// offlineMode: !!process.env.OFFLINE,
// },
// lessLoaderOptions: {
// javascriptEnabled: true,
// },
// // webpack(config, options) {
// // const { dev, isServer } = options;
// // config.module.rules.push({
// // test: /\.svg$/,
// // use: [
// // {
// // loader: "svg-inline-loader",
// // options: {
// // jsx: true // true outputs JSX tags
// // }
// // }
// // ]
// // });
// // return config;
// // }
// })