Skip to content

Commit 9c5a895

Browse files
authored
Migrate from node-sass to sass (#723)
* Migrate from node-sass to sass * Extend lint * Bump version
1 parent 48c9f77 commit 9c5a895

File tree

4 files changed

+467
-757
lines changed

4 files changed

+467
-757
lines changed

.eslintrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
},
66
"env": {
77
"es6": true,
8-
"browser": true,
9-
"node": true
8+
"node": true,
9+
"browser": true
1010
},
11-
"extends": ["eslint:recommended"]
11+
"extends": ["eslint:recommended", "plugin:compat/recommended"]
1212
}

.stylelintrc

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
11
{
2-
"extends": ["stylelint-config-recommended"],
2+
"extends": [
3+
"stylelint-config-recommended"
4+
],
5+
"plugins": [
6+
"stylelint-no-unsupported-browser-features"
7+
],
38
"rules": {
49
"at-rule-no-unknown": [
510
true,
611
{
7-
"ignoreAtRules": ["function", "if", "each", "include", "mixin", "for", "while", "else", "return"]
12+
"ignoreAtRules": [
13+
"function",
14+
"if",
15+
"each",
16+
"include",
17+
"mixin",
18+
"for",
19+
"while",
20+
"else",
21+
"return"
22+
]
823
}
924
]
1025
}

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpack-mpa",
3-
"version": "3.8.0",
3+
"version": "3.9.0",
44
"description": "Multi page app setup with webpack",
55
"scripts": {
66
"build": "webpack --mode=production",
@@ -47,9 +47,9 @@
4747
"cssnano": "5.0.7",
4848
"eslint": "7.32.0",
4949
"eslint-config-recommended": "4.1.0",
50+
"eslint-plugin-compat": "3.12.0",
5051
"file-loader": "6.2.0",
5152
"mini-css-extract-plugin": "2.2.0",
52-
"node-sass": "6.0.1",
5353
"node-sass-magic-importer": "5.3.2",
5454
"postcss": "8.3.6",
5555
"postcss-cli": "8.3.1",
@@ -61,10 +61,12 @@
6161
"postcss-url": "10.1.3",
6262
"postcss-utilities": "0.8.4",
6363
"postcss-watch-folder": "1.1.0",
64+
"sass": "1.37.5",
6465
"sass-loader": "12.1.0",
6566
"spritesh": "1.2.1",
6667
"stylelint": "13.13.1",
6768
"stylelint-config-recommended": "5.0.0",
69+
"stylelint-no-unsupported-browser-features": "5.0.1",
6870
"svgo": "2.3.1",
6971
"webpack": "5.49.0",
7072
"webpack-cli": "4.7.2",

0 commit comments

Comments
 (0)