Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced node-sass with sass #578

Merged
merged 2 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading