简体   繁体   English

创建node.js静态html(或其他格式)以编辑包中的文件。 构建一个实时的Sass编辑器

[英]Create node.js static html (or whatever) to edit files in package. Building a live Sass editor

My goal is to build an editor for sass (scss) variables in a theme builder. 我的目标是在主题构建器中为sass(s​​css)变量构建一个编辑器。 But I keep finding that writing to files is restricted even though the file is not running on a server (or perhaps it should if local). 但是,我一直发现,即使文件未在服务器上运行(也可能在本地),写入文件仍然受到限制。 Basically I want to serve up an html page that has a form to edit SCSS variables and then save those edits and then rerun the gulp stream to spit out the proper css. 基本上,我想提供一个具有可编辑SCSS变量的表单的html页面,然后保存这些编辑,然后重新运行gulp流以吐出正确的CSS。

I just found that Electron is the tool that I need. 我刚刚发现Electron是我需要的工具。 I stumbled upon it after lots of searching. 经过大量搜索,我偶然发现了它。 Pretty cool too! 太酷了! Lot's to learn and so little time! 有很多东西要学习,所以时间很少!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM