如何覆盖CSS或为node_module换皮肤? [英] How to override CSS or re-skin for node_module?

查看:74
本文介绍了如何覆盖CSS或为node_module换皮肤?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个node_module

有什么建议吗?

解决方案

基本上,我了解的覆盖模块的步骤是:

  1. 在本地分叉github环境
  2. Git克隆分叉的环境
  3. 在npm上注册
  4. 将更改应用于您的本地并以不同的名称发布在npm上
  5. Npm安装已发布的npm更新.

I have a node_module https://github.com/Alberplz/angular2-color-picker that I am using in my angular 2 project, but as all modules it includes it's CSS files and if I do inspect element i see in listed as localhost, but can't actually locate where they are.

I could create a separate file and overwrite but than I making a bigger mess as putting CSS on top of CSS and I would like to re skin the module.

This is how the CSS looks now

Any suggestion?

解决方案

Basically the steps I understand to overwrite a module is to:

  1. Fork the github environment locally
  2. Git clone your forked enviorment
  3. Register on npm
  4. Apply changes to your local and publish on npm under different name
  5. Npm install the published npm pacakage.

这篇关于如何覆盖CSS或为node_module换皮肤?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆