diff --git a/app/frontend/entrypoints/application.scss b/app/frontend/entrypoints/application.scss index d03280a0..ce190bc1 100644 --- a/app/frontend/entrypoints/application.scss +++ b/app/frontend/entrypoints/application.scss @@ -2,7 +2,7 @@ $govuk-images-path: "@govuk/assets/images/"; $govuk-fonts-path: "@govuk/assets/fonts/"; $govuk-global-styles: true; -@import "@govuk/all"; +@import "pkg:govuk-frontend"; @import "dfe-autocomplete/src/dfe-autocomplete"; @import "../../components/form_header_component/"; @import "../styles/app-panel"; diff --git a/vite.config.js b/vite.config.js index a6e1323f..7166249a 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,6 +1,7 @@ import { defineConfig } from 'vite' import RubyPlugin from 'vite-plugin-ruby' import * as path from 'node:path' +import { NodePackageImporter } from 'sass' export default defineConfig({ plugins: [RubyPlugin()], @@ -9,7 +10,7 @@ export default defineConfig({ preprocessorOptions: { scss: { api: 'modern', - loadPaths: ['./node_modules/govuk-frontend/'], + importers: [new NodePackageImporter()], quietDeps: true }, devSourcemaps: true