Apostrophecms 2 CSS问题

发布于 2025-01-24 01:44:53 字数 773 浏览 5 评论 0原文

我有一个撇号CMS 2项目,我正在尝试在“ lib \ Modules \ apostrophe-assets \ public \ public \ css \ site.cs.cs.cs.cs.cs.css.css.css.css.css.css”中进行更改的CSS文件。 CSS \ Master-Anon-CL2EIQKD30003WWB6KL1553JG.LESS。

因此,无论我在更改文件中进行更改,它都会在前侧反映,如果我这样做,则在“ lib \ postrophe-assets \ public \ cuply \ css \ cos.cs.cs.css.css”中进行更改。

然后,我在下面命令命令删除此文件 node app apostrophe:generation 参考链接#: https:https:// v2。 docs.apostrophecms.org/devops/deployment/deployment.html#always-minify-bebe-bebe-be tore-startup

发出此命令后,而不是新脚本&amp&创建了样式,但是在测试服务器中没有反映更改,网站样式被弄乱了。

你能建议任何解决方案吗

I've one apostrophe CMS 2 project where I am trying to make changes in the css file which resides in "lib\modules\apostrophe-assets\public\css\site.css" and there is another minify css file generated in public\css\master-anon-cl2eiqkd30003wwb6kl1553jg.less.

So whatever i make changes in minify files it reflects in front side and if I do that changes in 'lib\modules\apostrophe-assets\public\css\site.css' it didn't reflect.

Then I've fired below command to minify this files node app apostrophe:generation
Ref Link # : https://v2.docs.apostrophecms.org/devops/deployment/deployment.html#always-minify-before-startup

After firing this command than new scripts & styles are created but however changes are not getting reflected in the test server and website styles gets messed up.

Could you please suggest any solution

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

二货你真萌 2025-01-31 01:44:53

嗨,我不知道这是否会为您提供帮助,但是请尝试将代码和平添加到您的模块,小部件

enter code here
 construct: function(self, options){
  var superPushAssets = self.pushAssets;
  self.pushAssets = function(){
    superPushAssets();
    self.pushAsset('stylesheet', 'style-name', {when: 'always'};
};

};

Hi I don't know if this is going to help you, but try to add this peace of code to your module, widget

enter code here
 construct: function(self, options){
  var superPushAssets = self.pushAssets;
  self.pushAssets = function(){
    superPushAssets();
    self.pushAsset('stylesheet', 'style-name', {when: 'always'};
};

};

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文