全栈框架 Remix 1.13 发布,支持 PostCSS 和 Tailwind
Remix 是一个由 React Router 开发团队所开发的基于 React 和 Node 的全栈框架,以解决开发者在用 React 开发时面临的一些棘手问题。 Remix 1.13 发布,更新内容如下: 内置 PostCSS 支持 Remix 现在可以用 PostCSS 处理现有的 CSS 导入。此前在 Remix 中,这需要用户将任何 CSS 转换作为一个单独的进程来运行,并且导入需要引用输出而不是源。 现在不一样了,在 Remix 1.13 中现在你可以导入你实际编写的 CSS 文件的引用,Remix 会处理剩下的事情。 // remix.config.js module.exports = { future: { unstable_postcss: true, }, }; // postcss.config.js module.exports = { plugins: [/* your plugins here! */], presets: [/* your presets here! */], }; // app/routes/root....