{"id":1001,"date":"2023-03-12T08:21:58","date_gmt":"2023-03-12T00:21:58","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1001"},"modified":"2023-04-29T13:19:04","modified_gmt":"2023-04-29T05:19:04","slug":"using-stylus-stl-file-in-vue-project","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/12\/using-stylus-stl-file-in-vue-project\/","title":{"rendered":"Vue\u9879\u76ee\u4e2d\u4f7f\u7528stylus(.styl\u6587\u4ef6)"},"content":{"rendered":"<ul>\n<li>\u5b89\u88c5<\/li>\n<\/ul>\n<pre><code>npm install stylus stylus-loader --save-dev<\/code><\/pre>\n<p><!-- more --><\/p>\n<ul>\n<li>\u5728.vue\u6587\u4ef6\u7684style\u5757\u4e2d\u4f7f\u7528<\/li>\n<\/ul>\n<pre><code class=\"language-javascript\">&lt;style scoped lang=&quot;stylus&quot;&gt;\n...\n&lt;\/style&gt;<\/code><\/pre>\n<ul>\n<li>\u5916\u90e8\u5f15\u7528.styl\u6587\u4ef6<\/li>\n<\/ul>\n<pre><code class=\"language-javascript\">&lt;style lang=&quot;stylus&quot;&gt;\n@import &quot;path\/name.styl&quot;;\n\n&lt;\/style&gt;<\/code><\/pre>\n<p>stylus\u8bed\u6cd5\u53c2\u8003\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"http:\/\/www.zhangxinxu.com\/jq\/stylus\/\">http:\/\/www.zhangxinxu.com\/jq\/stylus\/<\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5 npm install stylus stylus-loader &#8211;save-dev \u5728.vue\u6587\u4ef6\u7684 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[],"class_list":["post-1001","post","type-post","status-publish","format-standard","hentry","category-vue"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1001"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1001\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}