简体   繁体   English

在npm中安装后如何使用第三方插件?

[英]How use third-party plugins after install in npm?

I install plugin (for instance normalize.css or jQuery) with npm install command. 我使用npm install命令安装插件(例如normalize.css或jQuery)。

npm install normalize.css --save
npm install jquery --save

I see them in package.json 我在package.json中看到了它们

  "dependencies": {
    "normalize.css": "^7.0.0"
  }

What next? 接下来是什么? How i can use it in my project? 我如何在项目中使用它? I'm using gulp and I do not know what to do next. 我正在用牙胶,不知道下一步该怎么做。

There are two main ways to make use of it. 有两种主要的使用方式。

Approach 1: use normalize.css as a starting point for your own project's base CSS, customising the values to match the design's requirements. 方法1:使用normalize.css作为您自己项目的基础CSS的起点,自定义值以符合设计要求。

Approach 2: include normalize.css untouched and build upon it, overriding the defaults later in your CSS if necessary. 方法2:包括未修改的normalize.css并在其上构建,如有必要,稍后在CSS中覆盖默认值。

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

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