[英]How to ensure the foundation-apps _settings.scss file isn't overwritten when I run 'bower update foundation-apps'
I have installed Foundation for Apps via bower ( bower install foundation-apps
). 我已经通过bower安装了Foundation for Apps( bower install foundation-apps
)。
Foundation says to use the _settings.scss for customization. Foundation表示使用_settings.scss进行自定义。 However, isn't this file overwritten when I eventually have to update to the latest version ( bower update foundation-apps
)? 但是,当我最终不得不更新到最新版本( bower update foundation-apps
)时,此文件是否不覆盖?
You're supposed to copy the _settings.scss
file out of the bower_components
directory and into your project's scss
folder so that it does not get overwritten when you update. 您应该将_settings.scss
文件从bower_components
目录中复制到项目的scss
文件夹中,以便在更新时不会被覆盖。 It's the only file you need to do that with. 这是您唯一需要执行此操作的文件。
From the Foundation for Apps Sass Documentation 摘自Foundation for Apps Sass文档
The Settings File 设置文件
All Foundatiion projects include a settings file, named _settings.scss. 所有Foundatiion项目都包含一个名为_settings.scss的设置文件。 If you're using the CLI to create a Foundation for Apps project, you can find the settings file under client/assets/scss/. 如果使用CLI来创建Foundation for Apps项目,则可以在client / assets / scss /下找到设置文件。 If you're installing the framework standalone using Bower or npm, there's a settings file included in those packages, which you can move into your own Sass files to work with. 如果使用Bower或npm独立安装框架,则这些软件包中包含一个设置文件,您可以将其移入自己的Sass文件中使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.