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

推荐订阅源

K
Kaspersky official blog
Martin Fowler
Martin Fowler
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
V
Visual Studio Blog
博客园_首页
Engineering at Meta
Engineering at Meta
The Cloudflare Blog
MongoDB | Blog
MongoDB | Blog
Blog — PlanetScale
Blog — PlanetScale
T
The Blog of Author Tim Ferriss
雷峰网
雷峰网
D
Docker
博客园 - 司徒正美
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
U
Unit 42
J
Java Code Geeks
A
About on SuperTechFans
N
Netflix TechBlog - Medium
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Security Affairs
I
Intezer
Cisco Talos Blog
Cisco Talos Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
B
Blog RSS Feed
P
Privacy & Cybersecurity Law Blog
T
Tenable Blog
T
Threatpost
H
Hacker News: Front Page
G
Google Developers Blog
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
L
Lohrmann on Cybersecurity
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
A
Arctic Wolf
S
Secure Thoughts
GbyAI
GbyAI
NISL@THU
NISL@THU
S
Security @ Cisco Blogs
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Webroot Blog
Webroot Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
O
OpenAI News
Spread Privacy
Spread Privacy
Application and Cybersecurity Blog
Application and Cybersecurity Blog

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