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

推荐订阅源

T
The Blog of Author Tim Ferriss
Know Your Adversary
Know Your Adversary
P
Palo Alto Networks Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
K
Kaspersky official blog
L
LINUX DO - 热门话题
P
Proofpoint News Feed
P
Privacy & Cybersecurity Law Blog
Google DeepMind News
Google DeepMind News
Attack and Defense Labs
Attack and Defense Labs
Cisco Talos Blog
Cisco Talos Blog
AI
AI
L
LINUX DO - 最新话题
H
Heimdal Security Blog
Hacker News: Ask HN
Hacker News: Ask HN
Webroot Blog
Webroot Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The GitHub Blog
The GitHub Blog
I
Intezer
Blog — PlanetScale
Blog — PlanetScale
有赞技术团队
有赞技术团队
S
Securelist
博客园_首页
IT之家
IT之家
Schneier on Security
Schneier on Security
博客园 - 叶小钗
罗磊的独立博客
WordPress大学
WordPress大学
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
阮一峰的网络日志
阮一峰的网络日志
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
W
WeLiveSecurity
The Register - Security
The Register - Security
D
DataBreaches.Net
S
Security @ Cisco Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
Recorded Future
Recorded Future
NISL@THU
NISL@THU
N
News and Events Feed by Topic
T
Tailwind CSS Blog
N
News and Events Feed by Topic
Cyberwarzone
Cyberwarzone
T
Tor Project blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com

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