From d903151aedcf60cff98b273c956559d18efe84d8 Mon Sep 17 00:00:00 2001 From: Sam Chatfield Date: Mon, 28 Oct 2024 10:49:36 +0000 Subject: [PATCH] Change node-sass to dart-sass in example app. --- eslint.config.js | 3 +++ example/package.json | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 6b34835..828bc2b 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -23,6 +23,9 @@ const styleRules = { module.exports = [ js.configs.recommended, + { + ignores: ['example/public/**'] + }, { languageOptions: { ecmaVersion: 2022, diff --git a/example/package.json b/example/package.json index 055e19b..ce53ef7 100644 --- a/example/package.json +++ b/example/package.json @@ -7,7 +7,7 @@ "start": "node .", "postinstall": "npm run build", "build": "npm run build:sass && npm run build:js", - "build:sass": "mkdir -p public/stylesheets; node-sass assets/stylesheets/app.scss --output-style compressed public/stylesheets/application.css", + "build:sass": "mkdir -p public/stylesheets; sass -q -I . -s compressed --no-source-map assets/stylesheets/app.scss public/stylesheets/application.css", "build:js": "mkdir -p public/javascripts; cat node_modules/govuk-frontend/govuk/all.js node_modules/hmpo-components/all.js assets/javascripts/*.js > public/javascripts/application.js" }, "author": "HMPO", @@ -23,7 +23,7 @@ "hmpo-i18n": "latest", "hmpo-logger": "latest", "hmpo-model": "latest", - "node-sass": "latest", - "nunjucks": "latest" + "nunjucks": "latest", + "sass": "latest" } }