mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-04-24 16:00:53 +08:00
32 lines
722 B
JavaScript
32 lines
722 B
JavaScript
const withLess = require('next-with-less');
|
|
const lowdefyConfig = require('./build/config.json');
|
|
|
|
module.exports = withLess({
|
|
basePath: lowdefyConfig.basePath,
|
|
// reactStrictMode: true,
|
|
webpack: (config, { isServer }) => {
|
|
if (!isServer) {
|
|
config.resolve.fallback = {
|
|
assert: false,
|
|
buffer: false,
|
|
crypto: false,
|
|
events: false,
|
|
fs: false,
|
|
path: false,
|
|
process: require.resolve('process/browser'),
|
|
util: false,
|
|
};
|
|
}
|
|
return config;
|
|
},
|
|
swcMinify: false,
|
|
compress: false,
|
|
outputFileTracing: false,
|
|
poweredByHeader: false,
|
|
generateEtags: false,
|
|
optimizeFonts: false,
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
});
|