react-flexbox-grid icon indicating copy to clipboard operation
react-flexbox-grid copied to clipboard

Any idea on how to setup webpack with nextjs?

Open johhansantana opened this issue 7 years ago • 1 comments
trafficstars

I'm using nextjs and I'm having trouble setting this up. I got a loader already in my webpack config but not sure what I have to do to make it work with react-flexbox-grid

config.module.rules.push(
  {
    test: /\.(css|scss)/,
    loader: "emit-file-loader",
    options: {
      name: "dist/[path][name].[ext]"
    }
  },
  {
    test: /\.s?(a|c)ss$/,
    use: [
      "babel-loader",
      "raw-loader",
      "postcss-loader",
      { loader: "sass-loader" }
    ]
  }
);

johhansantana avatar Feb 05 '18 22:02 johhansantana

Hi @johhansantana, I got this working using the following https://github.com/roylee0704/react-flexbox-grid/issues/28#issuecomment-557128837

alexwhin avatar Jan 10 '20 20:01 alexwhin