mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
12 lines
3.1 KiB
JavaScript
12 lines
3.1 KiB
JavaScript
import{_ as i,r as o,o as c,c as r,b as s,d as n,a as e,f as t}from"./app.136d0839.js";const p={},d=s("h1",{id:"fesjs-plugin-windicss",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#fesjs-plugin-windicss","aria-hidden":"true"},"#"),n(" @fesjs/plugin-windicss")],-1),l={class:"custom-container warning"},u=s("p",{class:"custom-container-title"},"即将废弃",-1),h={href:"https://tailwindcss.com/",target:"_blank",rel:"noopener noreferrer"},v=t(`<h2 id="介绍" tabindex="-1"><a class="header-anchor" href="#介绍" aria-hidden="true">#</a> 介绍</h2><p><code>windicss</code> 支持</p><h2 id="启用方式" tabindex="-1"><a class="header-anchor" href="#启用方式" aria-hidden="true">#</a> 启用方式</h2><p>在 <code>package.json</code> 中引入依赖:</p><div class="language-json line-numbers-mode" data-ext="json"><pre class="language-json"><code><span class="token punctuation">{</span>
|
||
<span class="token property">"devDependencies"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
|
||
<span class="token property">"@fesjs/plugin-windicss"</span><span class="token operator">:</span> <span class="token string">"^2.0.0"</span>
|
||
<span class="token punctuation">}</span>
|
||
<span class="token punctuation">}</span>
|
||
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h2 id="配置" tabindex="-1"><a class="header-anchor" href="#配置" aria-hidden="true">#</a> 配置</h2>`,6),k=s("code",null,".fes.js",-1),_={href:"https://windicss.org/integrations/webpack.html",target:"_blank",rel:"noopener noreferrer"},m=t(`<div class="language-javascript line-numbers-mode" data-ext="js"><pre class="language-javascript"><code><span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token punctuation">{</span>
|
||
<span class="token literal-property property">windicss</span><span class="token operator">:</span> <span class="token punctuation">{</span>
|
||
<span class="token literal-property property">root</span><span class="token operator">:</span> <span class="token string">'./'</span><span class="token punctuation">,</span>
|
||
<span class="token punctuation">}</span><span class="token punctuation">,</span>
|
||
<span class="token punctuation">}</span><span class="token punctuation">;</span>
|
||
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div>`,1);function b(f,g){const a=o("ExternalLinkIcon");return c(),r("div",null,[d,s("div",l,[u,s("p",null,[n("由于 windicss 不怎么维护了,本插件即将废弃,推荐使用 "),s("a",h,[n("tailwindcss"),e(a)]),n("。")])]),v,s("p",null,[n("在 "),k,n(" 配置文件中添加自定义配置,详细配置"),s("a",_,[n("请看"),e(a)]),n(":")]),m])}const x=i(p,[["render",b],["__file","windicss.html.vue"]]);export{x as default};
|