
Prepros will process a.scss whenever you edit b.scss, c.scss or d.scss. Refresh project with CTRL+R or CMD+R to manually re-scan imported files.įor instance if you have a file called a.scss with the following imports. Prepros also re-scans imported files whenever you edit a file. Prepros compiles the parent file whenever you edit an imported file. Minify CSSĮnable the Minify CSS option to minify the output CSS file. Prefix CSSĮnable the Prefix CSS option to add vendor prefixes to the output CSS file with Autoprefixer. Use the Indent Width option to set the number of spaces or tabs to use while indenting output CSS. Use the Indent Type option to indent output CSS with spaces or tabs. Makes it easier to read and debug.Ĭompact - Output one rule set per line. Output Style option is only available with Node-Sass, Dart-Sass outputs expanded CSS by default.Įxpanded - Separate rule sets and properties with a new line. Use the Output Style option to set the format of the output CSS file. This option is only available with Node-Sass, Dart-Sass always uses 10 digit precision. Use the Precision option to set how many digits after the decimal will be allowed.įor instance, if you have a decimal number of 1.23456789 and a precision of 5, the result will be 1.23457 in the final CSS. Dart Sass doesn’t support source comments. Source CommentsĮnable the Source Comments option to output comments in the CSS file containing the file name and line number of a rule set in the input Sass file. SourceMap files allow you to find the original position of rule sets and properties in the Sass file while inspecting pages with developer tools. map) file along with the output CSS file. Source MapsĮnable the SourceMap option to create a sourcemap (. You can also use project wide output options to adjust output path for all Sass files.

Change Output DestinationĬlick the output path on the file options sidebar to manually change the output path of a file. You can configure Sass from Project Settings -> CSS Tools -> Sass. Ruby-Sass is the deprecated Ruby implementation of Sass. You can enable Node-Sass from Project Settings -> CSS Tools -> Sass. Node-Sass uses LibSass, the C implementation of Sass to compile files. Prepros uses Dart-Sass by default to compile files. Dart-Sassĭart Sass is the primary implementation of Sass, which means it gets new features before any other implementation. There are multiple implementations of Sass. │ └── .Sass (which stands for Syntactically Awesome Style Sheets) is an extension of CSS that enables you to use things like variables, nested rules, inline imports and more. The ignore config is commonly for ignoring config files in the config directory so that they are not accidentally changed Anything outside of those is not touched. Themes in shopify only have a determined set of directories so themekit only watches those. Lastly, to clear up any misunderstandings, you do not need to ingnore your node_modules folder.

It is a balance of making this work reliably for everyone, managing cpu use, and making themekit responsive. There is some tuning that may need to be done because I know that the faster I loop the more CPU this uses, but the slower I poll for events the slower themekit reacts to events. I often run themekit all day and it does not run over 5% cpu.

This performance issue is not seemingly widespread, however, and CPU usage spikes are in the minority. We moved onto a polling mechanism because it could be more reliable cross-platform and less likely to hit file descriptor limits on macOS. RAM: 16GB DDR4 themekit used fsnotify in the past thank you for your research.Processor: Processor Intel(R) Core(TM) i7-8565U CPU 1.80GHz, 1992 Mhz, 4 Core(s), 8 Logical Processor(s).
#Prepros enable file watcher for only 1 folder windows 10#
