Open amitsch666 opened 7 years ago
This is the same issue as #6, how to use external stylesheet in production. I'd love to see this supported too, to avoid bundling the compiled CSS in JS files. I feel that it's a necessary feature for production use of Sass in Next.js projects.
Following your instruction I am able to compile a Sass stylesheet into vanilla CSS and and have it injected into the component's
tag. However, I am looking to have the generated CSS exported to a separate file with a referencing it injected instead of the inline CSS. Is that even possible? In non-Next projects, I would use the ExtractText plugin to achieve this result, not sure if that would work in next.config.js.