From 06f31d08d87e5fdf4e667db5b59c83d99992a8b3 Mon Sep 17 00:00:00 2001 From: HexaField Date: Fri, 3 Jan 2025 16:32:57 +1100 Subject: [PATCH] add tailwind and postcss configs --- postcss.config.js | 33 +++++++++++++++++++++++++++++++++ tailwind.config.js | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 postcss.config.js create mode 100644 tailwind.config.js diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 0000000..cf30bdb --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,33 @@ + +/* +CPAL-1.0 License + +The contents of this file are subject to the Common Public Attribution License +Version 1.0. (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at +https://github.com/ir-engine/ir-engine/blob/dev/LICENSE. +The License is based on the Mozilla Public License Version 1.1, but Sections 14 +and 15 have been added to cover use of software over a computer network and +provide for limited attribution for the Original Developer. In addition, +Exhibit A has been modified to be consistent with Exhibit B. + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the +specific language governing rights and limitations under the License. + +The Original Code is Infinite Reality Engine. + +The Original Developer is the Initial Developer. The Initial Developer of the +Original Code is the Infinite Reality Engine team. + +All portions of the code written by the Infinite Reality Engine team are Copyright © 2021-2023 +Infinite Reality Engine. All Rights Reserved. +*/ + + +module.exports = { + plugins: { + tailwindcss: import('tailwindcss'), + autoprefixer: import('autoprefixer'), + }, +} diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 0000000..ea032e4 --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,33 @@ +/* +CPAL-1.0 License + +The contents of this file are subject to the Common Public Attribution License +Version 1.0. (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at +https://github.com/ir-engine/ir-engine/blob/dev/LICENSE. +The License is based on the Mozilla Public License Version 1.1, but Sections 14 +and 15 have been added to cover use of software over a computer network and +provide for limited attribution for the Original Developer. In addition, +Exhibit A has been modified to be consistent with Exhibit B. + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the +specific language governing rights and limitations under the License. + +The Original Code is Infinite Reality Engine. + +The Original Developer is the Initial Developer. The Initial Developer of the +Original Code is the Infinite Reality Engine team. + +All portions of the code written by the Infinite Reality Engine team are Copyright © 2021-2023 +Infinite Reality Engine. All Rights Reserved. +*/ + +import tailwindConfig from '../../../../../tailwind.config' + +const newConfig = structuredClone(tailwindConfig) +newConfig.content = newConfig.content.map((a) => a.replace('../', '../../../../')) + +module.exports = { + ...newConfig +}