Skip to content

Commit

Permalink
Inspector: replace sass with postcss
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar committed Mar 28, 2023
1 parent 31aa90f commit 83c61ba
Show file tree
Hide file tree
Showing 20 changed files with 302 additions and 262 deletions.
44 changes: 21 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
{
"type": "module",
"scripts": {
"dev": "vite --config tools/vite.config.ts",
"build": "vite build --config tools/vite.config.ts",
"preview": "vite preview",
"check": "svelte-check --workspace ui --tsconfig ./../tools/tsconfig.json",
"lint": "prettier --check --plugin-search-dir=. ./ui --config ./tools/.prettierrc --ignore-path ./tools/.prettierignore",
"format": "prettier --write --plugin-search-dir=. ./ui --config ./tools/.prettierrc --ignore-path ./tools/.prettierignore"
},
"dependencies": {
"svelte-portal": "^2.2.0"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^1.0.1",
"@tsconfig/svelte": "^3.0.0",
"prettier": "^2.7.1",
"prettier-plugin-svelte": "^2.7.0",
"sass": "^1.54.4",
"svelte": "^3.49.0",
"svelte-check": "^2.8.0",
"svelte-preprocess": "^4.10.7",
"tslib": "^2.4.0",
"typescript": "^4.6.4",
"vite": "^3.0.7"
}
"dev": "vite --config tools/vite.config.ts",
"build": "vite build --config tools/vite.config.ts",
"preview": "vite preview",
"check": "svelte-check --workspace ui --tsconfig ./../tools/tsconfig.json",
"lint": "prettier --check --plugin-search-dir=. ./ui --config ./tools/.prettierrc --ignore-path ./tools/.prettierignore",
"format": "prettier --write --plugin-search-dir=. ./ui --config ./tools/.prettierrc --ignore-path ./tools/.prettierignore"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^1.0.1",
"@tsconfig/svelte": "^3.0.0",
"postcss-nested": "^6.0.1",
"prettier": "^2.7.1",
"prettier-plugin-svelte": "^2.7.0",
"svelte": "^3.49.0",
"svelte-check": "^2.8.0",
"svelte-portal": "^2.2.0",
"svelte-preprocess": "^4.10.7",
"tslib": "^2.4.0",
"typescript": "^4.6.4",
"vite": "^3.0.7"
}
}
5 changes: 5 additions & 0 deletions tools/postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
plugins: [
require('postcss-nested'),
],
}
4 changes: 3 additions & 1 deletion tools/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import {defineConfig} from "vite"
import {svelte} from "@sveltejs/vite-plugin-svelte"

// https://vitejs.dev/config/
export default defineConfig({
plugins: [
svelte({
configFile: '../tools/svelte.config.js',
})
],
root: "ui",
css: {
postcss: __dirname + '/postcss.config.cjs',
},
build: {
rollupOptions: {
input: "ui/src/main.ts",
Expand Down
2 changes: 1 addition & 1 deletion ui/dist/assets/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 83c61ba

Please sign in to comment.