diff --git a/.gitignore b/.gitignore index 9857262..3e0e8dc 100644 --- a/.gitignore +++ b/.gitignore @@ -7,5 +7,6 @@ _build/ dist/ packs/ node_modules/ +module.zip .foundryvtt/data/ .foundryvtt/secrets.json diff --git a/package.json b/package.json index f11000c..e42652b 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ "@league-of-foundry-developers/foundry-vtt-types": "12.331.3-beta", "@sveltejs/vite-plugin-svelte": "^5.0.3", "@tsconfig/svelte": "^5.0.4", + "autoprefixer": "^10.4.21", "commitizen": "4.3.1", "cz-conventional-changelog": "3.3.0", "eslint": "^9.25.1", diff --git a/src/index.ts b/src/index.ts index 5e6c6b9..232f0a9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,5 @@ +import '../styles/module.css'; + Hooks.once('ready', () => { console.log('ready to go'); }); diff --git a/vite.config.js b/vite.config.js index d68c22f..a3a9e46 100644 --- a/vite.config.js +++ b/vite.config.js @@ -3,6 +3,7 @@ import { svelte } from '@sveltejs/vite-plugin-svelte'; import { sveltePreprocess } from 'svelte-preprocess'; +import autoprefixer from 'autoprefixer'; import vttSync from 'foundryvtt-sync'; import moduleJSON from './module.json' with { type: 'json' }; @@ -57,7 +58,7 @@ export default ({ mode }) => { }, css: { - postcss: { plugins: { autoprefixer: {} }, compress: s_COMPRESS, sourceMap: s_SOURCEMAPS }, + postcss: { plugins: [autoprefixer], inject: false, sourceMap: s_SOURCEMAPS }, }, // About server options: