惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cisco Talos Blog
Cisco Talos Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Vercel News
Vercel News
B
Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
Schneier on Security
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
博客园 - 司徒正美
NISL@THU
NISL@THU
T
Threat Research - Cisco Blogs
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Latest news
Latest news
H
Help Net Security
雷峰网
雷峰网
Spread Privacy
Spread Privacy
Cyberwarzone
Cyberwarzone
Project Zero
Project Zero
Security Latest
Security Latest
Know Your Adversary
Know Your Adversary
人人都是产品经理
人人都是产品经理
P
Privacy & Cybersecurity Law Blog
M
MIT News - Artificial intelligence
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
P
Proofpoint News Feed
U
Unit 42
大猫的无限游戏
大猫的无限游戏
A
Arctic Wolf
博客园 - 三生石上(FineUI控件)
Stack Overflow Blog
Stack Overflow Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cybersecurity and Infrastructure Security Agency CISA
量子位
C
Cyber Attacks, Cyber Crime and Cyber Security
S
Securelist
S
Security @ Cisco Blogs
T
Threatpost
P
Palo Alto Networks Blog
C
Check Point Blog
V
Vulnerabilities – Threatpost
T
Tailwind CSS Blog
B
Blog RSS Feed
Recorded Future
Recorded Future
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
P
Proofpoint News Feed
P
Privacy International News Feed
AWS News Blog
AWS News Blog
博客园 - 叶小钗
WordPress大学
WordPress大学

Lan小站-嗯,不错! - Web

在 Django 中实现基于 JA3 指纹的反爬虫策略 纪念一下,FileCodeBox再次进入Github日榜 - Lan小站-嗯,不错! 根据日期对mysql数据分组之后查询每个日期中的不同状态的数量 - Lan小站-嗯,不错! Fast-Crud中rowHandle的remove操作点击无效 - Lan小站-嗯,不错! 为什么我打开一些网站会提示:将此站点作为应用安装,我的网站要怎么样才可以和他一样 - Lan小站-嗯,不错! ios点击输入框屏幕自动放大 - Lan小站-嗯,不错! AILink全新来袭-邀请免费得次数-送体验卡 - Lan小站-嗯,不错! 输入框在输入中文时回车误触发输入的回车事件 - Lan小站-嗯,不错! 开源:匿名口令分享文本,文件-口令文件箱-文件快递柜 - Lan小站-嗯,不错!
yarn+vite+vue3+typescript 安装 tailwind - Lan小站-嗯,不错!
Lan · 2023-02-23 · via Lan小站-嗯,不错! - Web

Lan

本文最后更新于2023年02月23日,已超过1207天没有更新,若内容或图片失效,请留言反馈。

  1. 创建vite项目yarn create vite
    https://gitlab.com/Vastsa/lanpicbed/-/raw/master/zb_users/upload/2023/02/450d7914a2ca48c4829d3f4476debb45.png
    输入项目名称,选择Vue
    www.lanol.cn
    选择Customize with create-vue
    www.lanol.cn
    根据需求选一下
    www.lanol.cn
  2. 根据指令,cd到项目目录里面之后,执行yarn
    www.lanol.cn
  3. 安装tailwind, yarn add tailwindcss postcss autoprefixer
    www.lanol.cn
    参考:https://tailwindcss.com/docs/guides/vite#vue
    生成配置文件yarn tailwindcss init
    重点来了:由于是typescript,所以需要将后缀js重命名为cjs。
    www.lanol.cn
    编辑:tailwind.config.cjs文件,输入以下内容:

    /** @type {import('tailwindcss').Config} */
    module.exports = {
      content: [
     "./index.html",
     "./src/**/*.{vue,js,ts,jsx,tsx}",
      ],
      theme: {
     extend: {},
      },
      plugins: [],
    }

    再编辑src/assets/main.css替换成以下内容:

    @tailwind base;
    @tailwind components;
    @tailwind utilities;

编辑src/App.vue,添加一行内容,并保存

<h1 class="text-3xl font-bold underline">
    Hello world!
  </h1>

www.lanol.cn

  1. 启动yarn dev
    www.lanol.cn

已生效(h1加了下划线)
www.lanol.cn