Skip to content

Commit

Permalink
build: use vite for build instead of sass
Browse files Browse the repository at this point in the history
  • Loading branch information
tillywoodfield committed Oct 24, 2024
1 parent 5340279 commit 5bce8ba
Show file tree
Hide file tree
Showing 6 changed files with 569 additions and 138 deletions.
8 changes: 0 additions & 8 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { StorybookConfig } from "@storybook/web-components-vite";
import { NodePackageImporter } from "sass";

const config: StorybookConfig = {
framework: "@storybook/web-components-vite",
Expand All @@ -12,13 +11,6 @@ const config: StorybookConfig = {
async viteFinal(config) {
const { mergeConfig } = await import("vite");
return mergeConfig(config, {
css: {
preprocessorOptions: {
scss: {
pkgImporter: new NodePackageImporter(),
},
},
},
optimizeDeps: {
exclude: [
"@storybook/blocks",
Expand Down
2 changes: 1 addition & 1 deletion .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Preview } from "@storybook/web-components";

import "../src/scss/iati.scss";
import "../src/scss/main.scss";
import DocsTemplate from "./DocsTemplate.mdx";

const preview: Preview = {
Expand Down
Loading

0 comments on commit 5bce8ba

Please sign in to comment.