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

推荐订阅源

T
Tenable Blog
Last Week in AI
Last Week in AI
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
H
Help Net Security
F
Fortinet All Blogs
MyScale Blog
MyScale Blog
宝玉的分享
宝玉的分享
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 司徒正美
量子位
N
Netflix TechBlog - Medium
Apple Machine Learning Research
Apple Machine Learning Research
小众软件
小众软件
Recorded Future
Recorded Future
博客园 - 三生石上(FineUI控件)
Vercel News
Vercel News
aimingoo的专栏
aimingoo的专栏
I
InfoQ
Microsoft Security Blog
Microsoft Security Blog
Scott Helme
Scott Helme
The Last Watchdog
The Last Watchdog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
IT之家
IT之家
AI
AI
WordPress大学
WordPress大学
Security Archives - TechRepublic
Security Archives - TechRepublic
Google Online Security Blog
Google Online Security Blog
U
Unit 42
V2EX - 技术
V2EX - 技术
MongoDB | Blog
MongoDB | Blog
Schneier on Security
Schneier on Security
博客园 - Franky
H
Heimdal Security Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Jina AI
Jina AI
W
WeLiveSecurity
P
Privacy & Cybersecurity Law Blog
Cloudbric
Cloudbric
B
Blog RSS Feed
N
News | PayPal Newsroom
S
Securelist
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
I
Intezer
Hacker News - Newest:
Hacker News - Newest: "LLM"
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
博客园_首页
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
雷峰网
雷峰网

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