Closed muzlevy closed 1 year ago
@muzlevy https://github.com/uiwjs/next-remove-imports/tree/main/example
Thank you for your answer, I've already solved this problem
@muzlevy can you share with us how you solve this?
@muzlevy can you share with us how you solve this?
I use spread syntax
const withPlugins = require("next-compose-plugins");
const removeImports = require("next-remove-imports");
module.exports = withPlugins([withTM, withImages], {
images: {
disableStaticImages: true,
},
webpack: (config, options) => {
return config;
},
...removeImports({
test: /node_modules([\s\S]*?)\.(tsx|ts|js|mjs|jsx)$/,
matchImports: "\\.(less|css|scss|sass|styl)$",
}),
});
hello, I would like to know if they can be used together
This is my next.config.js