How to use normalize.css using npm install with webpack?

后端 未结 5 1390
情话喂你
情话喂你 2021-02-03 17:09

I am using webpack with ReactJS and trying to figure out how to using normalize.css after npm installing it (https://necolas.github.io/normalize.css/).

Is the normalize

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-03 17:34

    First, install or download normalize.css from GitHub.I would recommend download it.Then, There are then 2 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.

    Approach 2: include normalize.css untouched and build upon it, overriding the defaults later in your CSS if necessary.

    i.e Just put these downloaded files into the project folder and add link to it by link tag

    link rel="stylesheet" type="text/css" href="normalize.css"

    NOTE href content should point to the folder where normalize is stored.

提交回复
热议问题