react-flexbox-grid
react-flexbox-grid copied to clipboard
Any idea on how to setup webpack with nextjs?
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" }
]
}
);
Hi @johhansantana, I got this working using the following https://github.com/roylee0704/react-flexbox-grid/issues/28#issuecomment-557128837