const CracoLessPlugin = require("craco-less");
const webpack = require('webpack');

module.exports = {
  plugins: [
    {
      plugin: CracoLessPlugin,
      options: {
        lessLoaderOptions: {
          lessOptions: {
            // modifyVars: { "@primary-color": "#1DA57A" },
            javascriptEnabled: true,
          },
        },
      },
    },
  ],
  webpack: {
    plugins: {
        add: [
            new webpack.ProvidePlugin({
                process: 'process/browser.js',
            })
        ]
    },
  },
};
