简体   繁体   English

自动保存主 scss 文件,而不必手动保存

[英]autosave main scss file instead of having to save it manually

My folder structure is as follows我的文件夹结构如下

在此处输入图片说明

I am using 'live sass compiler' in vscode to watch files.我在 vscode 中使用“实时 sass 编译器”来查看文件。 But every time I update other scss files like _globals.scss I have to manually save style.scss for the changes to reflect.但是每次我更新其他 scss 文件(如 _globals.scss)时,我都必须手动保存 style.scss 以反映更改。 Is there a work-around to auto save style.scss instead of having to save it manually.是否有自动保存 style.scss 而不必手动保存的解决方法。

my settings.json for live sass compiler are as follows:我的实时 sass 编译器的 settings.json 如下:

{
  "editor.tabSize": 2,
  "editor.fontSize": 18,
  "editor.wordWrap": "on",
  "editor.formatOnSave": true,
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "terminal.integrated.defaultProfile.windows": "Git Bash",
  "liveServer.settings.donotShowInfoMsg": true,
  "files.autoSave": "afterDelay",
  "workbench.editorAssociations": {
    "*.ipynb": "jupyter.notebook.ipynb"
  },
  "editor.renderWhitespace": "none",
  "liveSassCompile.settings.autoprefix": [],

  "liveSassCompile.settings.excludeList": ["**/node_modules/**", ".vscode/**"]
}

This seems bizare.这似乎很奇怪。 Anything with a leading underscore should compile all files.任何带有前导下划线的东西都应该编译所有文件。 Do you still have the issue on my active fork ?你对我的活动叉还有问题吗?

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

相关问题 JavaScript 自动保存文本到客户端的文件 - JavaScript autosave text to file on client-side 间隔后自动保存在WOPI中打开的文件以进行编辑 - Autosave file opened in WOPI for editing after an interval 如何跨页面设置暗模式,而不是用户必须在每个页面上手动按下它 - How do i set dark mode accross pages instead of user having to manually press it on every single page Vue 3 - 在 main.js 上导入与 vue.config.js 上的附加数据,加载全局 scss 文件 - Vue 3 - import on main.js vs additionalData on vue.config.js, load a global scss file Rails中有两个文件扩展名(即:.css.scss)有什么作用? - What does having two file extensions do in Rails (i.e.: .css.scss)? 自动保存具有多个项目的PHP表单,并使用Ajax保存在mysqli中 - Autosave PHP form with multiple items and save in mysqli with ajax 如何避免自动保存和手动保存功能之间的冲突 - How to avoid conflict between AutoSave and Manual Save functionality 保存任何 html、scss、ts 文件后不会立即进行 Angular 12 编译 - Angular 12 Compilation is not immediately happening after any html, scss, ts file save Webpack:SCSS 到 CSS 文件 - Webpack: SCSS to CSS file scss file not compiling in react - scss file not compiling in react
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM