zoukankan      html  css  js  c++  java
  • sass编译

    Sass can't be directly interpreted by your browser, so it must first be converted, or compiled, to CSS before the browser can directly understand it.

    Compiling refers to converting code to lower level code so that it can be executed. By compiling SCSS to CSS, it can be interpreted by your browser and the results will appear on a webpage.

    Before we dive into writing Sass, let's first learn how to compile it to CSS by typing the following command in the terminal and pressing enter:

    The sass command above takes in two arguments:

    1. The input (main.scss)
    2. The location of where to place that output (main.css)

    Make sure to look closely at the extensions of each file in the command above.

    From this point on, any Sass code you write will be auto-compiled anytime you click the "Run" button. This will allow us to focus strictly on writing code.

    Even though you won't be compiling the code manually everytime you write Sass in this course, be aware that it's happening for you in the background.

  • 相关阅读:
    Robberies
    Big Event in HDU
    UVA 562 Dividing coins
    Little Rooks
    Bone Collector
    Piggy-Bank
    0-1背包问题之——饭卡
    Monkey and Banana
    The Triangle
    Burning Midnight Oil
  • 原文地址:https://www.cnblogs.com/greatluoluo/p/5662639.html
Copyright © 2011-2022 走看看