#194 - Resolve vite cjs warning
authorAdam Dullage <redacted>
Sat, 8 Jun 2024 10:18:18 +0000 (11:18 +0100)
committerAdam Dullage <redacted>
Sat, 8 Jun 2024 10:18:18 +0000 (11:18 +0100)
package.json
postcss.config.js
prettier.config.js
tailwind.config.js

index 25a573c9f0d579a2816825691da24bf4ab148d04..98927b765cb043afca9d5df03c97bc3f300a0164 100644 (file)
@@ -1,6 +1,7 @@
 {\r
   "name": "flatnotes",\r
   "version": "5.0.0",\r
+  "type": "module",\r
   "description": "A database-less note taking web app that utilises a flat folder of markdown files for storage.",\r
   "main": "client/index.html",\r
   "scripts": {\r
index a03e681cd7638cbac0c9581ca0b93022f73956ab..daedffd2bf4950df77bf2c9d6920181331f4c48a 100644 (file)
@@ -1,6 +1,6 @@
-module.exports = {\r
+export default {\r
   plugins: {\r
     tailwindcss: {},\r
     autoprefixer: {},\r
   },\r
-}\r
+};\r
index cec2e169e756236f57746961959090a494c39c8a..fd9c7aaffe1f84fff9c2f055238453693fe2457f 100644 (file)
@@ -1,3 +1,3 @@
-module.exports = {\r
+export default {\r
   plugins: ["prettier-plugin-tailwindcss"],\r
 };\r
index 657e55d9d9305712f0e17e9b332fb5ca7a8225c4..5b67b072bcf2d90bf41d3114e31ae49a920166fa 100644 (file)
@@ -1,7 +1,8 @@
 /** @type {import('tailwindcss').Config} */\r
-const colors = require("tailwindcss/colors");\r
 \r
-module.exports = {\r
+import colors from "tailwindcss/colors";\r
+\r
+export default {\r
   content: ["client/**/*.{html,js,vue}"],\r
   darkMode: "selector",\r
   theme: {\r
git clone https://git.99rst.org/PROJECT