diff --git a/package.json b/package.json index 12d16c0..186753d 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "dev": "vite", "build": "vite build", "preview": "vite preview", - "fix": "stylelint \"**/*.css\" --fix", + "fix": "stylelint \"src/*.css\" --fix", "format": "prettier --write \"**/*.{html,js}\"" }, "license": "MIT", diff --git a/vite.config.js b/vite.config.js index 974d6f2..0acf3c5 100644 --- a/vite.config.js +++ b/vite.config.js @@ -9,7 +9,11 @@ export default defineConfig({ sample: resolve(__dirname, "src/sample/index.html"), multiple: resolve(__dirname, "src/multiple-animation/index.html"), }, + output: { + chunkFileNames: "assets/[name].js", + assetFileNames: "assets/[name][extname]", + }, }, - base: "/240827_theatrejs/" + base: "/240827_theatrejs/", }, });