Skip to content

Commit

Permalink
Merge pull request #578 from danskernesdigitalebibliotek/replace-node…
Browse files Browse the repository at this point in the history
…-sass-with-sass

Replaced node-sass with sass
  • Loading branch information
JacobArrow authored Oct 12, 2023
2 parents 65f8a3b + c0dccdd commit d7e9641
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 570 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"@babel/preset-env": "^7.17.10",
"@babel/preset-react": "^7.16.7",
"@babel/preset-typescript": "^7.16.7",
"@csstools/postcss-sass": "^5.0.1",
"@cypress/browserify-preprocessor": "^3.0.2",
"@cypress/code-coverage": "^3.9.12",
"@graphql-codegen/add": "^3.1.1",
Expand Down Expand Up @@ -111,7 +112,6 @@
"istanbul-lib-coverage": "^3.2.0",
"markdownlint-cli2": "^0.4.0",
"mutationobserver-shim": "^0.3.7",
"node-sass": "^7.0.1",
"nyc": "^15.1.0",
"orval": "^6.8.1",
"postcss": "^8.4.31",
Expand All @@ -120,6 +120,7 @@
"postcss-scss": "^4.0.8",
"prettier": "^2.6.2",
"replace-in-file": "^6.3.2",
"sass": "^1.69.0",
"source-map-support": "^0.5.21",
"style-loader": "^3.3.1",
"stylelint": "^15.10.3",
Expand Down
4 changes: 2 additions & 2 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
const autoprefixer = require("autoprefixer");
const cssnano = require("cssnano");
const nodesass = require("./scripts/postcss-node-sass");
const postcssSass = require("@csstools/postcss-sass");

module.exports = (ctx) => {
const production = ctx.env === "production";
return {
parser: "postcss-scss",
map: ctx.options.map,
plugins: [
nodesass({
postcssSass({
// We always want to inject all of our variables and mixins.
// There is not to be any actual output from _system.scss.
data: '@import "./src/components/design-system/_system.scss";'
Expand Down
72 changes: 0 additions & 72 deletions scripts/postcss-node-sass.js

This file was deleted.

Loading

0 comments on commit d7e9641

Please sign in to comment.