Skip to content

Commit

Permalink
feat: add vite-plugin-image-optimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
mihirsamdarshi committed May 10, 2024
1 parent b8c5376 commit b653dbb
Show file tree
Hide file tree
Showing 3 changed files with 362 additions and 2 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,12 @@
"react-error-overlay": "^6.0.11",
"rollup-plugin-visualizer": "^5.12.0",
"sass": "1.70.0",
"sharp": "^0.33.3",
"storybook": "^8.0.9",
"storybook-addon-remix-react-router": "^3.0.0",
"stylelint": "^16.2.0",
"stylelint-config-recommended": "^14.0.0",
"svgo": "^3.3.2",
"vite-plugin-image-optimizer": "^1.1.7",
"vitest": "^1.4.0",
"vitest-canvas-mock": "^0.3.3"
Expand Down
3 changes: 2 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
import react from '@vitejs/plugin-react-swc';
import { visualizer } from 'rollup-plugin-visualizer';
import { defineConfig } from 'vite';
import { ViteImageOptimizer } from 'vite-plugin-image-optimizer'

// https://vitejs.dev/config/
export default defineConfig({
base: '/',
plugins: [react(), visualizer()],
plugins: [react(), visualizer(), ViteImageOptimizer()],
build: {
outDir: 'build',
rollupOptions: {
Expand Down
Loading

0 comments on commit b653dbb

Please sign in to comment.