Skip to content
Snippets Groups Projects
craco.config.js 494 B
Newer Older
const webpack = require('webpack')

Luka's avatar
Luka committed
module.exports = {
  style: {
    postcssOptions: {
Luka's avatar
Luka committed
      /* eslint-disable global-require */
      plugins: [
        require('tailwindcss'),
        require('autoprefixer'),
      ],
    },
  },
  webpack: {
    configure: {
      resolve: {
        fallback: {
          buffer: require.resolve('buffer'),
        },
      },
      plugins: [
        new webpack.ProvidePlugin({
          Buffer: ['buffer', 'Buffer'],
        }),
      ],
Luka's avatar
Luka committed
    },
  },
};