Skip to content

Commit

Permalink
feat(chore/sass): use postcss-sass instead of postcss-node-sass (#760)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedMok committed Mar 16, 2021
1 parent 1e5016e commit 360f0cf
Show file tree
Hide file tree
Showing 3 changed files with 139 additions and 293 deletions.
2 changes: 1 addition & 1 deletion packages/css-dev-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dotenv": "^8.2.0",
"postcss": "^7.0.7",
"postcss-base64": "^0.7.1",
"postcss-node-sass": "^2.1.8",
"@csstools/postcss-sass": "^4.0.0",
"postcss-reporter": "^6.0.0",
"postcss-scss": "^2.0.0",
"stylelint": "^13.5.0",
Expand Down
8 changes: 3 additions & 5 deletions packages/css-dev-tools/postcssPluginConfig.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require('dotenv').config()
const scssSyntax = require('postcss-scss')
const autoprefixer = require('autoprefixer')
const nodeSass = require('postcss-node-sass')
const sass = require('@csstools/postcss-sass')
const stylelint = require('stylelint')
const base64 = require('postcss-base64')
const reporter = require('postcss-reporter')
Expand Down Expand Up @@ -50,11 +50,10 @@ const plugins = [
stylelint({ config: styleLintConfig }),
reporter({ clearReportedMessages: true }),
cssprepend(`$mozaic-env: ${mozaicEnvScssVar};`),
nodeSass({
sass({
includePaths,
outputStyle: 'expanded',
indentWidth,
precision: 7,
}),
base64({
pattern: /<svg.*<\/svg>/i,
Expand All @@ -68,11 +67,10 @@ const plugins = [

const productionPlugins = [
cssprepend(`$mozaic-env: ${mozaicEnvScssVar};`),
nodeSass({
sass({
includePaths,
outputStyle: 'expanded',
indentWidth,
precision: 7,
}),
base64({
pattern: /<svg.*<\/svg>/i,
Expand Down
Loading

0 comments on commit 360f0cf

Please sign in to comment.