rake db:create db:migrate
yarn install
rails server
./bin/webpack-dev-server
主要和普遍都會用到的邏輯放置
-
Used:
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
-
FilePath:
app/javascript/packs/application.js
特殊頁面邏輯放置,如下
-
Used:
<%= javascript_pack_tag 'dashboard', 'data-turbolinks-track': 'reload' %>
-
FilePath:
app/javascript/packs/dashboard.js
Theme style put in
-
File:
.css
-
FilePath:
bernard/app/assets/stylesheets/theme_libs/*
Theme relative min js put in
-
File:
min.js
-
FilePath:
bernard/public/javascripts/*
- "bootstrap": "^5.0.1",
- "@popperjs/core": "2.9.2"
- "webpack-dev-server": "^3.11.2"