SASS - How to synchronise style.scss with style.css file?











up vote
0
down vote

favorite












I'm using SASS, writing in style.scss compiling to (style.css & style.map.css), but how to convert style.css file to completely normal style.css file?



The compiled style.css file looks like this






div{
margin: 0 auto;}
p {
text-align: center;}





How to convert it into normal.css?










share|improve this question
























  • We need more information. If you're successfully compiling your SCSS into CSS, style.css should already be a "normal" CSS file. Can you explain more about what you're trying to achieve, and why?
    – wiiiiilllllll
    Nov 7 at 16:45










  • This is already a normal CSS file.
    – Quentin Veron
    Nov 7 at 17:48










  • Yes, but how to make parentheses on a new line, and the tags also on a new line?
    – Nakov
    Nov 8 at 6:20















up vote
0
down vote

favorite












I'm using SASS, writing in style.scss compiling to (style.css & style.map.css), but how to convert style.css file to completely normal style.css file?



The compiled style.css file looks like this






div{
margin: 0 auto;}
p {
text-align: center;}





How to convert it into normal.css?










share|improve this question
























  • We need more information. If you're successfully compiling your SCSS into CSS, style.css should already be a "normal" CSS file. Can you explain more about what you're trying to achieve, and why?
    – wiiiiilllllll
    Nov 7 at 16:45










  • This is already a normal CSS file.
    – Quentin Veron
    Nov 7 at 17:48










  • Yes, but how to make parentheses on a new line, and the tags also on a new line?
    – Nakov
    Nov 8 at 6:20













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm using SASS, writing in style.scss compiling to (style.css & style.map.css), but how to convert style.css file to completely normal style.css file?



The compiled style.css file looks like this






div{
margin: 0 auto;}
p {
text-align: center;}





How to convert it into normal.css?










share|improve this question















I'm using SASS, writing in style.scss compiling to (style.css & style.map.css), but how to convert style.css file to completely normal style.css file?



The compiled style.css file looks like this






div{
margin: 0 auto;}
p {
text-align: center;}





How to convert it into normal.css?






div{
margin: 0 auto;}
p {
text-align: center;}





div{
margin: 0 auto;}
p {
text-align: center;}






sass compilation






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 7 at 17:03

























asked Nov 7 at 12:18









Nakov

386




386












  • We need more information. If you're successfully compiling your SCSS into CSS, style.css should already be a "normal" CSS file. Can you explain more about what you're trying to achieve, and why?
    – wiiiiilllllll
    Nov 7 at 16:45










  • This is already a normal CSS file.
    – Quentin Veron
    Nov 7 at 17:48










  • Yes, but how to make parentheses on a new line, and the tags also on a new line?
    – Nakov
    Nov 8 at 6:20


















  • We need more information. If you're successfully compiling your SCSS into CSS, style.css should already be a "normal" CSS file. Can you explain more about what you're trying to achieve, and why?
    – wiiiiilllllll
    Nov 7 at 16:45










  • This is already a normal CSS file.
    – Quentin Veron
    Nov 7 at 17:48










  • Yes, but how to make parentheses on a new line, and the tags also on a new line?
    – Nakov
    Nov 8 at 6:20
















We need more information. If you're successfully compiling your SCSS into CSS, style.css should already be a "normal" CSS file. Can you explain more about what you're trying to achieve, and why?
– wiiiiilllllll
Nov 7 at 16:45




We need more information. If you're successfully compiling your SCSS into CSS, style.css should already be a "normal" CSS file. Can you explain more about what you're trying to achieve, and why?
– wiiiiilllllll
Nov 7 at 16:45












This is already a normal CSS file.
– Quentin Veron
Nov 7 at 17:48




This is already a normal CSS file.
– Quentin Veron
Nov 7 at 17:48












Yes, but how to make parentheses on a new line, and the tags also on a new line?
– Nakov
Nov 8 at 6:20




Yes, but how to make parentheses on a new line, and the tags also on a new line?
– Nakov
Nov 8 at 6:20












1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










The default output style for Sass is normally nested, which is the style/formatting you see in your style.css file.



Possible options are:




  • nested

  • expanded

  • compressed

  • compact


If you change the output to expanded before compiling your file, you will probably get the style you want.



sass --watch scss:css --style expanded


Will produce this:



div {
margin: 0 auto;
}
p {
text-align: center;
}


PS. If you are using somtehing like Gulp, the task could be set up like this:



.pipe(sass({ outputStyle: 'expanded' }))





share|improve this answer





















  • That's exactly what I was searching for, many Thanks. Just one more question - the command creates style.css file and style.css.map file - how the program knows where to put them and how to name them?
    – Nakov
    Nov 9 at 10:33












  • If you are using the command line, the .map file will always be in the same folder and with the same name, as far as I know.
    – Trollsyn
    Nov 9 at 14:32










  • PS. If my answer solved your problem, please accept it by clicking the grey checkmark on the left side of my answer :)
    – Trollsyn
    Nov 12 at 8:49











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53189332%2fsass-how-to-synchronise-style-scss-with-style-css-file%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote



accepted










The default output style for Sass is normally nested, which is the style/formatting you see in your style.css file.



Possible options are:




  • nested

  • expanded

  • compressed

  • compact


If you change the output to expanded before compiling your file, you will probably get the style you want.



sass --watch scss:css --style expanded


Will produce this:



div {
margin: 0 auto;
}
p {
text-align: center;
}


PS. If you are using somtehing like Gulp, the task could be set up like this:



.pipe(sass({ outputStyle: 'expanded' }))





share|improve this answer





















  • That's exactly what I was searching for, many Thanks. Just one more question - the command creates style.css file and style.css.map file - how the program knows where to put them and how to name them?
    – Nakov
    Nov 9 at 10:33












  • If you are using the command line, the .map file will always be in the same folder and with the same name, as far as I know.
    – Trollsyn
    Nov 9 at 14:32










  • PS. If my answer solved your problem, please accept it by clicking the grey checkmark on the left side of my answer :)
    – Trollsyn
    Nov 12 at 8:49















up vote
0
down vote



accepted










The default output style for Sass is normally nested, which is the style/formatting you see in your style.css file.



Possible options are:




  • nested

  • expanded

  • compressed

  • compact


If you change the output to expanded before compiling your file, you will probably get the style you want.



sass --watch scss:css --style expanded


Will produce this:



div {
margin: 0 auto;
}
p {
text-align: center;
}


PS. If you are using somtehing like Gulp, the task could be set up like this:



.pipe(sass({ outputStyle: 'expanded' }))





share|improve this answer





















  • That's exactly what I was searching for, many Thanks. Just one more question - the command creates style.css file and style.css.map file - how the program knows where to put them and how to name them?
    – Nakov
    Nov 9 at 10:33












  • If you are using the command line, the .map file will always be in the same folder and with the same name, as far as I know.
    – Trollsyn
    Nov 9 at 14:32










  • PS. If my answer solved your problem, please accept it by clicking the grey checkmark on the left side of my answer :)
    – Trollsyn
    Nov 12 at 8:49













up vote
0
down vote



accepted







up vote
0
down vote



accepted






The default output style for Sass is normally nested, which is the style/formatting you see in your style.css file.



Possible options are:




  • nested

  • expanded

  • compressed

  • compact


If you change the output to expanded before compiling your file, you will probably get the style you want.



sass --watch scss:css --style expanded


Will produce this:



div {
margin: 0 auto;
}
p {
text-align: center;
}


PS. If you are using somtehing like Gulp, the task could be set up like this:



.pipe(sass({ outputStyle: 'expanded' }))





share|improve this answer












The default output style for Sass is normally nested, which is the style/formatting you see in your style.css file.



Possible options are:




  • nested

  • expanded

  • compressed

  • compact


If you change the output to expanded before compiling your file, you will probably get the style you want.



sass --watch scss:css --style expanded


Will produce this:



div {
margin: 0 auto;
}
p {
text-align: center;
}


PS. If you are using somtehing like Gulp, the task could be set up like this:



.pipe(sass({ outputStyle: 'expanded' }))






share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 8 at 12:27









Trollsyn

430310




430310












  • That's exactly what I was searching for, many Thanks. Just one more question - the command creates style.css file and style.css.map file - how the program knows where to put them and how to name them?
    – Nakov
    Nov 9 at 10:33












  • If you are using the command line, the .map file will always be in the same folder and with the same name, as far as I know.
    – Trollsyn
    Nov 9 at 14:32










  • PS. If my answer solved your problem, please accept it by clicking the grey checkmark on the left side of my answer :)
    – Trollsyn
    Nov 12 at 8:49


















  • That's exactly what I was searching for, many Thanks. Just one more question - the command creates style.css file and style.css.map file - how the program knows where to put them and how to name them?
    – Nakov
    Nov 9 at 10:33












  • If you are using the command line, the .map file will always be in the same folder and with the same name, as far as I know.
    – Trollsyn
    Nov 9 at 14:32










  • PS. If my answer solved your problem, please accept it by clicking the grey checkmark on the left side of my answer :)
    – Trollsyn
    Nov 12 at 8:49
















That's exactly what I was searching for, many Thanks. Just one more question - the command creates style.css file and style.css.map file - how the program knows where to put them and how to name them?
– Nakov
Nov 9 at 10:33






That's exactly what I was searching for, many Thanks. Just one more question - the command creates style.css file and style.css.map file - how the program knows where to put them and how to name them?
– Nakov
Nov 9 at 10:33














If you are using the command line, the .map file will always be in the same folder and with the same name, as far as I know.
– Trollsyn
Nov 9 at 14:32




If you are using the command line, the .map file will always be in the same folder and with the same name, as far as I know.
– Trollsyn
Nov 9 at 14:32












PS. If my answer solved your problem, please accept it by clicking the grey checkmark on the left side of my answer :)
– Trollsyn
Nov 12 at 8:49




PS. If my answer solved your problem, please accept it by clicking the grey checkmark on the left side of my answer :)
– Trollsyn
Nov 12 at 8:49


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53189332%2fsass-how-to-synchronise-style-scss-with-style-css-file%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Xamarin.form Move up view when keyboard appear

Post-Redirect-Get with Spring WebFlux and Thymeleaf

Anylogic : not able to use stopDelay()