Skip to content

Commit f6d4f0e

Browse files
authored
Merge pull request #313 from ManiShah7/fix/sass-migration-and-purge-shorten-fix
fix(build): replace node-sass with sass and disable css-purge shorten
2 parents 6104015 + 97fd733 commit f6d4f0e

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

Gruntfile.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ module.exports = (grunt) => {
2121
'dist/<%= pkg.name %>-<%= pkg.version %>.min.css': 'dist/<%= pkg.name %>-<%= pkg.version %>.min.css',
2222
'dist/<%= pkg.name %>.min.css': 'dist/<%= pkg.name %>.min.css'
2323
},
24-
options: {}
24+
options: {
25+
shorten: false
26+
}
2527
},
2628
uncompressed: {
2729
files: {
@@ -38,7 +40,7 @@ module.exports = (grunt) => {
3840
'tacit.min.css': 'scss/main.scss'
3941
},
4042
options: {
41-
implementation: require('node-sass'),
43+
implementation: require('sass'),
4244
outputStyle: 'compressed',
4345
sourceMap: true
4446
}
@@ -49,7 +51,7 @@ module.exports = (grunt) => {
4951
'dist/<%= pkg.name %>.min.css': 'scss/main.scss'
5052
},
5153
options: {
52-
implementation: require('node-sass'),
54+
implementation: require('sass'),
5355
outputStyle: 'compressed',
5456
sourceMap: true
5557
}
@@ -60,7 +62,7 @@ module.exports = (grunt) => {
6062
'dist/<%= pkg.name %>.css': 'scss/main.scss'
6163
},
6264
options: {
63-
implementation: require('node-sass'),
65+
implementation: require('sass'),
6466
outputStyle: 'expanded',
6567
sourceMap: false
6668
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"grunt-sass": "4.0.0",
1717
"grunt-sass-lint": "0.2.4",
1818
"load-grunt-tasks": "5.1.0",
19-
"node-sass": "9.0.0",
19+
"sass": "^1.89.0",
2020
"npm": "11.4.1",
2121
"path": "0.12.7"
2222
},

scss/_tables.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ table {
4949
tr {
5050
border-bottom-width: .12 * $em;
5151

52-
th {
53-
border-bottom-width: .12 * $em;
54-
}
55-
5652
td,
5753
th {
5854
overflow: hidden;

0 commit comments

Comments
 (0)