tron-v1
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
488 B

  1. /** @type {import('next').NextConfig} */
  2. const withLess = require('next-with-less');
  3. const nextConfig = {
  4. webpack: (config) => {
  5. config.module.rules.push({
  6. test: /\.less$/,
  7. use: [
  8. 'style-loader',
  9. 'css-loader',
  10. {
  11. loader: 'less-loader',
  12. options: {
  13. lessOptions: {
  14. javascriptEnabled: true,
  15. },
  16. },
  17. },
  18. ],
  19. });
  20. return config;
  21. },
  22. };
  23. module.exports = nextConfig;