fix: supress scss deps warning
This commit is contained in:
+11
-13
@@ -1,20 +1,18 @@
|
|||||||
//@ts-check
|
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
||||||
const { composePlugins, withNx } = require('@nx/next');
|
const { composePlugins, withNx } = require('@nx/next');
|
||||||
const { withPayload } = require('@payloadcms/next/withPayload');
|
const { withPayload } = require('@payloadcms/next/withPayload');
|
||||||
|
|
||||||
/**
|
/** @type {import('@nx/next/plugins/with-nx').WithNxOptions} */
|
||||||
* @type {import('@nx/next/plugins/with-nx').WithNxOptions}
|
|
||||||
**/
|
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
nx: {
|
nx: { svgr: false },
|
||||||
// Set this to true if you would like to to use SVGR
|
sassOptions: {
|
||||||
// See: https://github.com/gregberge/svgr
|
quietDeps: true,
|
||||||
svgr: false,
|
logger: {
|
||||||
|
warn: () => {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
webpack(config) {
|
||||||
|
return config;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const plugins = [withNx, withPayload];
|
module.exports = composePlugins(withNx, withPayload)(nextConfig);
|
||||||
|
|
||||||
module.exports = composePlugins(...plugins)(nextConfig);
|
|
||||||
|
|||||||
Reference in New Issue
Block a user