2

I'm having some trouble using node-sass for compiling my scss into css in particular - formatting. The last bracket seems unconventional and ideally would trail to the next line.

@media screen and (min-width: 768px) {
  .container {
    max-width: 718px; } }

Please see picture - node-sass output picture

I have set up the build-css script to compile as so:

node-sass --include-path scss src/scss/main.scss dist/css/main.css

I'm relativley new to npm and tried to use prettier but having no luck. I have also tried using --linefeed but not sure thats what I need.

Note I am not using a task runner as I dont need any js in this project.

Many thanks in advance.

1 Answer 1

4

Added: --output-style expanded for a fix.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.