css3 - 使用less编译css后,后期的项目中less是直接放在项目文件中,后期如何维护呢
迷茫
迷茫 2017-04-17 11:55:31
0
4
552

使用less编译css后,后期的项目中less是直接放在项目文件中,后期如何维护呢

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(4)
左手右手慢动作

Once the style is changed in the future, only less will be changed. All less files will be placed in a special folder (for example, called less).

Then separate a special folder (for example, called css) to put only the less compiled css files. The page also references the style sheet in this folder, which means that in principle, css will no longer have the opportunity to be encountered manually.

I don’t know if you mean this, I hope it helps you

洪涛

Our gulp detection is to recompile and overwrite the css every time, so it is useless to change the css and only change less. The same is true for maintenance

刘奇

Use less in the development environment and compile less into css in the production environment. There are two files during development and production. For maintenance, change directly to less. In theory, you cannot directly change the code in the production environment

小葫芦

Two folders: less and css. css contains the compiled styles and is directly referenced in the project. If the project style needs to be modified later, just change it to less

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template