浏览代码

fix(whiteboard): tldraw demo should inherit root tailwind config

Peng Xiao 2 年之前
父节点
当前提交
edc9618a81
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tldraw/demo/postcss.config.js

+ 3 - 0
tldraw/demo/postcss.config.js

@@ -1,3 +1,5 @@
+const rootTailwindConfig = require('../../tailwind.config')
+
 module.exports = {
 module.exports = {
   plugins: {
   plugins: {
     'postcss-import': {},
     'postcss-import': {},
@@ -5,6 +7,7 @@ module.exports = {
     'postcss-import-ext-glob': {},
     'postcss-import-ext-glob': {},
     'tailwindcss/nesting': {},
     'tailwindcss/nesting': {},
     tailwindcss: {
     tailwindcss: {
+      ...rootTailwindConfig,
       content: ['./**/*.jsx', '../apps/**/*.{js,jsx,ts,tsx}'],
       content: ['./**/*.jsx', '../apps/**/*.{js,jsx,ts,tsx}'],
     },
     },
     autoprefixer: {},
     autoprefixer: {},