当前位置: 首页 > 工具软件 > lein-figwheel > 使用案例 >

clojure figwheel搭建前端,持续更新

南门朗
2023-12-01

创建前端工程 lein new figwheel your-name

F:\workspace-vscode>lein new figwheel ningdr-front
:repositories detected in user-level profiles! [:user]
See https://github.com/technomancy/leiningen/wiki/Repeatability
Generating fresh 'lein new' figwheel project.

Change into your 'ningdr-front' directory and run 'lein figwheel'
Wait for it to finish compiling
A browser window should open to the demo application, if not
then open 'http://localhost:3449/index.html' in your browser

编辑project.clj,引入需要的依赖:

;; cljs封装的js框架查询:https://cljdoc.org/
[hiccup "1.0.5"] ;; 使用最新版,2020-02-25

下载tailwindcss,目前不做引入优化(PS:现在也不知道如何优化,慢慢摸索)

将下载的css文件,移动到创建的工程中,放到css文件夹下

先撸clojure去了...

 

 

 

 类似资料: