Skip to content

Commit

Permalink
v1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRafia committed Mar 15, 2024
1 parent a4c642a commit c28150f
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 15 deletions.
6 changes: 3 additions & 3 deletions forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { MakerRpm } from '@electron-forge/maker-rpm';
import { VitePlugin } from '@electron-forge/plugin-vite';

const config: ForgeConfig = {
packagerConfig: {
asar: true,
},
// packagerConfig: {
// asar: true,
// },
rebuildConfig: {},
makers: [new MakerSquirrel({}), new MakerZIP({}, ['darwin']), new MakerRpm({}), new MakerDeb({})],
publishers: [
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<html>
<head>
<meta charset="UTF-8" />
<link href="/main.css" rel="stylesheet">
<link href="main.css" rel="stylesheet">
<title>Speedy</title>

</head>
<body>
<div id="root"></div>
<script type="module" src="/src/renderer.ts"></script>
<script type="module" src="src/renderer.ts"></script>
</body>
</html>
3 changes: 3 additions & 0 deletions postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
plugins: [require("tailwindcss"), require("autoprefixer")],
};
3 changes: 0 additions & 3 deletions postcss.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const createWindow = () => {
if (MAIN_WINDOW_VITE_DEV_SERVER_URL) {
mainWindow.loadURL(MAIN_WINDOW_VITE_DEV_SERVER_URL);
} else {
mainWindow.loadFile(path.join(__dirname, `../renderer/${MAIN_WINDOW_VITE_NAME}/index.html`));
mainWindow.loadFile(path.join(__dirname, `../dist/renderer/index.html`));
}

// Open the DevTools.
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./**/*.{html,ts,tsx}"],
content: ["./**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {},
},
Expand Down
1 change: 1 addition & 0 deletions vite.main.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import postcss from 'postcss';
import { defineConfig } from 'vite';

// https://vitejs.dev/config
Expand Down
19 changes: 14 additions & 5 deletions vite.renderer.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
import { defineConfig } from 'vite';
import postcss from 'rollup-plugin-postcss';
import tailwindcss from 'tailwindcss'

export default defineConfig({
plugins: [
postcss({
include: '**/*.css',
}),
],
// plugins: [
// postcss({
// include: '**/*.css',
// }),
// ],
build: {
outDir: 'dist/renderer/',
},
css: {
postcss: {
plugins: [tailwindcss()],
},
}
});

0 comments on commit c28150f

Please sign in to comment.