Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any idea on how to setup webpack with nextjs? #146

Open
johhansantana opened this issue Feb 5, 2018 · 1 comment
Open

Any idea on how to setup webpack with nextjs? #146

johhansantana opened this issue Feb 5, 2018 · 1 comment

Comments

@johhansantana
Copy link

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" }
    ]
  }
);
@alexwhin
Copy link

Hi @johhansantana, I got this working using the following #28 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants