WeBuilder Plugin: Node-Sass v1.0
Integrate Node-Sass into Webuilder. So now you can compile SASS files directly from within the editor.
Node-sass is a library that provides binding for Node.js to LibSass, the C version of the popular stylesheet preprocessor, Sass.
It allows you to natively compile .scss files to css at incredible speed. <https://github.com/sass/node-sass>
Requires nodejs. <https://nodejs.org/>
Usage:
The plugin can run in 2 different modes: Manual or automatic. (Can be changed through the plugin options)
- Default mode will automatically compile your .scss files when saving.
- Manual mode adds a menu item you can activate manually when you want the document compiled.
All node-sass options can be controlled by the settings menuitem.
Installation:
1) Download plugin .ZIP file.
2) Open WeBuilder and select "Plugins -> Manage Plugins" from the menu.
3) Click "Install" and select the .ZIP file you downloaded in step 1.
4) Download and install node.js if you haven't done so already. <https://nodejs.org/en/download/>
5) Open a DOS prompt and type (without quotes): "npm install node-sass -g"
This will install the node-sass module needed for compiling the SASS files.