该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Lenix scss compiler

描述

A useful plugin for developers writing SCSS.
The plugin allows you to write SCSS directly on the server (via FTP) without the need for a local compiler.

How It Works?

Choose a source folder for SCSS and a target folder for CSS.
Write the SCSS code in the file on the source folder, and it automatically creates a CSS file in the target folder.

What’s included?

  • Option for multiple source and destination folders.
  • Allows you to set a folder in the entire wp-content space.
  • Performance – only when one of the source files change – it re-compiling itself.
  • After development you can turn off / delete the plugin without fear, and all the files are stay where they were.
  • Allows you to develop a theme and plugin at the same time.

Example:

source: themes/your-theme/assets/scss/style.scss

body {
    color: black;
    .main {
        background: red;
    }
}

target: themes/your-theme/assets/css/style.css

body {
    color: black;
}

body .main {
    background: red;
}

— pay attention!
If the file already exists in the destination folder – it will be overwritten by the SCSS file

屏幕截图

安装

‪‪1. Download the link.‬‬
‪‪2. Upload the zip file via the Plugin upload.‬‬
‪‪3. Activate the plugin.‬‬
‪‪4. Edit in the settings page.

常见问题

Can I use in main theme and child theme together

Yes, you can add unlimited locations even in a plugin.

评价

2018 年 6 月 23 日
Loadtime TTFB over 10 seconds without page load Nothing more to say. Page load first again, after delate plugin
2018 年 1 月 12 日 1 回复
Really doing the job!! Thanks!! Really a great tool! Could it be possible like in WP-SCSS to have an option to choose the level of compilation: nested, expanded, compact, compressed? And another problem: sometimes the CSS file isn't generated. I did modification on a partial file, refresh the page on my webbrowser, and nothing happens. And if I manually suppress the CSS generated file, I can indeed see that nothing is generated. The only way I found to immediately make it works again (and not waiting couples of minutes), was to deactivate / reactivate the plugin. So a problem may be somewhere.
2017 年 11 月 4 日
i found this plugin very useful when i need to compile a sass to css by just few click without getting out wordpress workspace. when i deactivate the plugin compiled files still in directories. AAA+++ RATE.
阅读所有3条评价

贡献者及开发者

“Lenix scss compiler” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Lenix scss compiler”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.2

  • Update scssphp library

1.1.1

  • Improved UI

1.1.0

  • Fix: Reduce resource consumption
  • Tweak! Adding disable compiler button
  • Tweak! Adding “Compile Now” button

1.0.0

  • Initial Public Beta Release