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

next build doesn't build CSS into output directory. #4845

Closed
chilijung opened this issue Jul 26, 2018 · 1 comment
Closed

next build doesn't build CSS into output directory. #4845

chilijung opened this issue Jul 26, 2018 · 1 comment

Comments

@chilijung
Copy link

chilijung commented Jul 26, 2018

Bug report

Describe the bug

When using @zeit/next-css in next.config.js, in dev mode the CSS successfully built into .next/static/style.css but when using next build to build static version of the app will not generate .next/static/style.css in the directory.

To Reproduce

You could reproduce this error in this demo https://github.com/Canner/canner-demo/tree/master/nextjs-ecom-with-firebase

next.config.js is located: https://github.com/Canner/canner-demo/blob/master/nextjs-ecom-with-firebase/functions/next.config.js

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. run npm run dev in dev mode css is generated.

screen shot 2018-07-26 at 1 02 29 pm

2, run ./node_modules/.bin/next build css is NOT generated in output directory.

screen shot 2018-07-26 at 1 06 33 pm

Expected behavior

When entering next build in output folder it should also generate CSS files.

System information

  • OS: [e.g. macOS, Windows]: mac
  • Browser (if applies) [e.g. chrome, safari]: chrome
  • Version of Next.js: [e.g. 6.0.2]: 6.1.1

Additional context

Add any other context about the problem here.

@chilijung chilijung changed the title next build doesn't build CSS into built directory. next build doesn't build CSS into built directory. Jul 26, 2018
@chilijung chilijung changed the title next build doesn't build CSS into built directory. next build doesn't build CSS into output directory. Jul 26, 2018
@timneutkens
Copy link
Member

This is unrelated to Next.js. Please file on next-plugins.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants