Giter VIP home page Giter VIP logo

cdoc-css's Introduction

简介

这是一个功能强大,效率很高的前端css样式库和脚手架。适用于纯静态页面的极速搭建。

本项目基于Tailwindcss,运用于CNKI知网PC专题的建设。

  1. 克隆本项目

  2. 安装依赖包:

    # 用 npm 或者cnpm
    npm install
    
    # 用 Yarn 或者 tyarn
    yarn
  3. 开启服务:

    # 用 npm
    npm run serve
    
    # 用 Yarn
    yarn run serve

    现在在 localhost:8080 可以看到地址

  4. 打开 public/index.html 看到页面!

部署生产环境

使用 Purgecsscssnano 优化代码

运行以下命令

# 使用 npm
npm run production

# 使用 Yarn
yarn run production

检查 ./public/build/tailwind.css 是不是被压缩了。

cdoc-css's People

Contributors

jn66 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.