Sass is used and configured in the Webstorm

Source: Internet
Author: User

My environment: Win7-64bit WEBSTORM9

Webstorm Installing the Sass Plugin

To have Webstorm automatically compile the sass file:

Open the Settings window->file watchers-> to the right of the green plus->scss

Click OK to finish compiling the Scss file.

Further configuration 1:

Always generate CSS and Css.map files

In ' Arguments ':--no-cache--update $FileName $: Add--sourcemap--watch $FileNameWithoutExtension $.css

i.e.:--no-cache--update--sourcemap--watch $FileName $: $FileNameWithoutExtension $.css

Added after ' Output paths to refresh ': $FileNameWithoutExtension $.css: $FileNameWithoutExtension $.css.map

namely: $FileNameWithoutExtension $.css: $FileNameWithoutExtension $.css.map

Click OK, at which time the. css file and. Css.map two files are generated, and the default is to generate a. css file.

Further configuration 2:

Modify the Build file location

Add a configuration path in ' Arguments ' $FileName $: back and before $filenamewithoutextension$.css

Example--no-cache--update--sourcemap--watch $FileName $: $FileParentDir $\css\ $FileNameWithoutExtension $.css/* This is the CSS folder in the parent directory of the directory where the Scss file is located, where the $fileparentdir$ represents the parent folder of the current folder */

If it does not, it must be where there is no right to write, carefully check under, note do not forget to plug in the middle of the colon.

In the Webstorm scss is still very useful, eliminating the need to manually compile the trouble.

If the use is not webstorm in here to recommend a software koala, this software can always compile koala, but this software can only compile files, cannot modify view files.

If you use sublime and other editors can consider the koala.

Sass is used and configured in the Webstorm

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.