Move CSS compilation to Vite Ruby
The encompasses a few changes: 1. extend the `universal_stylesheet_link_tag` and `universal_path_to_stylesheet` to serve styles directlt from `vite`. 1. use `vite`'s native SCSS feature. This needs a lot of config changes. 1. Use alias for @gitlab fonts: Otherwise we get files under `public/assets/@gitlab`. And who knows how well reverse proxies and such would handle built assets that have an at in the URL.
显示
- app/assets/javascripts/vue_shared/components/lib/utils/props_utils.js 1 个添加, 1 个删除...avascripts/vue_shared/components/lib/utils/props_utils.js
- app/helpers/vite_helper.rb 7 个添加, 3 个删除app/helpers/vite_helper.rb
- app/views/layouts/errors.html.haml 5 个添加, 2 个删除app/views/layouts/errors.html.haml
- app/views/layouts/oauth_error.html.haml 5 个添加, 2 个删除app/views/layouts/oauth_error.html.haml
- config/helpers/vite_plugin_style.mjs 84 个添加, 0 个删除config/helpers/vite_plugin_style.mjs
- config/vite.json 6 个添加, 0 个删除config/vite.json
- postcss.config.js 1 个添加, 0 个删除postcss.config.js
- scripts/frontend/lib/compile_css.mjs 11 个添加, 15 个删除scripts/frontend/lib/compile_css.mjs
- scripts/frontend/tailwindcss.mjs 0 个添加, 1 个删除scripts/frontend/tailwindcss.mjs
- scripts/frontend/vite 9 个添加, 0 个删除scripts/frontend/vite
- spec/helpers/vite_helper_spec.rb 48 个添加, 6 个删除spec/helpers/vite_helper_spec.rb
- vite.config.js 12 个添加, 2 个删除vite.config.js
加载中
想要评论请 注册 或 登录