css-loader 2.1.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -1
- package/README.md +252 -98
- package/dist/index.js +39 -178
- package/dist/options.json +43 -36
- package/dist/plugins/postcss-icss-parser.js +48 -62
- package/dist/plugins/postcss-import-parser.js +4 -6
- package/dist/plugins/postcss-url-parser.js +60 -40
- package/dist/runtime/api.js +15 -10
- package/dist/runtime/{url-escape.js → getUrl.js} +3 -2
- package/dist/utils.js +263 -30
- package/package.json +48 -79
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "css-loader",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "css loader module for webpack",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "webpack-contrib/css-loader",
|
|
@@ -9,28 +9,27 @@
|
|
|
9
9
|
"bugs": "https://github.com/webpack-contrib/css-loader/issues",
|
|
10
10
|
"main": "dist/cjs.js",
|
|
11
11
|
"engines": {
|
|
12
|
-
"node": ">=
|
|
12
|
+
"node": ">= 8.9.0"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
15
|
"start": "npm run build -- -w",
|
|
16
16
|
"prebuild": "npm run clean",
|
|
17
|
-
"build": "cross-env NODE_ENV=production babel src -d dist --ignore
|
|
17
|
+
"build": "cross-env NODE_ENV=production babel src -d dist --ignore \"src/**/*.test.js\" --copy-files",
|
|
18
|
+
"validate:runtime": "es-check es5 \"dist/runtime/**/*.js\"",
|
|
19
|
+
"postbuild": "npm run validate:runtime",
|
|
18
20
|
"clean": "del-cli dist",
|
|
19
|
-
"commitlint": "commitlint",
|
|
20
|
-
"
|
|
21
|
-
"lint": "eslint --cache src test",
|
|
22
|
-
"
|
|
21
|
+
"commitlint": "commitlint --from=master",
|
|
22
|
+
"lint:prettier": "prettier \"{**/*,*}.{js,json,md,yml,css}\" --list-different",
|
|
23
|
+
"lint:js": "eslint --cache src test",
|
|
24
|
+
"lint": "npm-run-all -l -p \"lint:**\"",
|
|
25
|
+
"prepare": "npm run build",
|
|
23
26
|
"release": "standard-version",
|
|
24
27
|
"security": "npm audit",
|
|
25
|
-
"test:only": "jest",
|
|
26
|
-
"test:watch": "jest --watch",
|
|
27
|
-
"test:coverage": "jest --collectCoverageFrom
|
|
28
|
+
"test:only": "cross-env NODE_ENV=test jest",
|
|
29
|
+
"test:watch": "cross-env NODE_ENV=test jest --watch",
|
|
30
|
+
"test:coverage": "cross-env NODE_ENV=test jest --collectCoverageFrom=\"src/**/*.js\" --coverage",
|
|
28
31
|
"pretest": "npm run lint",
|
|
29
|
-
"test": "npm run test:
|
|
30
|
-
"ci:lint": "npm run lint && npm run security",
|
|
31
|
-
"ci:test": "npm run test:only -- --runInBand",
|
|
32
|
-
"ci:coverage": "npm run test:coverage -- --runInBand",
|
|
33
|
-
"ci:lint:commits": "commitlint --from=origin/master --to=${CIRCLE_SHA1}",
|
|
32
|
+
"test": "cross-env NODE_ENV=test npm run test:coverage",
|
|
34
33
|
"defaults": "webpack-defaults"
|
|
35
34
|
},
|
|
36
35
|
"files": [
|
|
@@ -42,47 +41,51 @@
|
|
|
42
41
|
"webpack": "^4.0.0"
|
|
43
42
|
},
|
|
44
43
|
"dependencies": {
|
|
45
|
-
"
|
|
44
|
+
"camelcase": "^5.3.1",
|
|
45
|
+
"cssesc": "^3.0.0",
|
|
46
|
+
"icss-utils": "^4.1.1",
|
|
46
47
|
"loader-utils": "^1.2.3",
|
|
47
|
-
"camelcase": "^5.2.0",
|
|
48
48
|
"normalize-path": "^3.0.0",
|
|
49
|
-
"postcss": "^7.0.
|
|
49
|
+
"postcss": "^7.0.17",
|
|
50
50
|
"postcss-modules-extract-imports": "^2.0.0",
|
|
51
|
-
"postcss-modules-local-by-default": "^
|
|
51
|
+
"postcss-modules-local-by-default": "^3.0.2",
|
|
52
52
|
"postcss-modules-scope": "^2.1.0",
|
|
53
|
-
"postcss-modules-values": "^
|
|
54
|
-
"postcss-value-parser": "^
|
|
53
|
+
"postcss-modules-values": "^3.0.0",
|
|
54
|
+
"postcss-value-parser": "^4.0.0",
|
|
55
55
|
"schema-utils": "^1.0.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@babel/cli": "^7.
|
|
59
|
-
"@babel/core": "^7.
|
|
60
|
-
"@babel/
|
|
61
|
-
"@
|
|
62
|
-
"@commitlint/
|
|
63
|
-
"@
|
|
64
|
-
"@webpack-contrib/defaults": "^3.0.0",
|
|
58
|
+
"@babel/cli": "^7.4.4",
|
|
59
|
+
"@babel/core": "^7.4.5",
|
|
60
|
+
"@babel/preset-env": "^7.4.5",
|
|
61
|
+
"@commitlint/cli": "^8.0.0",
|
|
62
|
+
"@commitlint/config-conventional": "^8.0.0",
|
|
63
|
+
"@webpack-contrib/defaults": "^5.0.0",
|
|
65
64
|
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
|
|
66
|
-
"babel-jest": "^24.
|
|
65
|
+
"babel-jest": "^24.8.0",
|
|
66
|
+
"commitlint-azure-pipelines-cli": "^1.0.2",
|
|
67
67
|
"cross-env": "^5.2.0",
|
|
68
|
-
"del": "^4.
|
|
69
|
-
"del-cli": "^
|
|
70
|
-
"
|
|
71
|
-
"eslint
|
|
72
|
-
"eslint-
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
68
|
+
"del": "^4.1.1",
|
|
69
|
+
"del-cli": "^2.0.0",
|
|
70
|
+
"es-check": "^5.0.0",
|
|
71
|
+
"eslint": "^5.16.0",
|
|
72
|
+
"eslint-config-prettier": "^4.3.0",
|
|
73
|
+
"eslint-plugin-import": "^2.17.3",
|
|
74
|
+
"file-loader": "^4.0.0",
|
|
75
|
+
"husky": "^2.4.0",
|
|
76
|
+
"jest": "^24.8.0",
|
|
77
|
+
"jest-junit": "^6.4.0",
|
|
78
|
+
"lint-staged": "^8.2.0",
|
|
77
79
|
"memory-fs": "^0.4.1",
|
|
80
|
+
"npm-run-all": "^4.1.5",
|
|
78
81
|
"postcss-loader": "^3.0.0",
|
|
79
|
-
"postcss-preset-env": "^6.
|
|
80
|
-
"prettier": "^1.
|
|
81
|
-
"sass": "^1.
|
|
82
|
+
"postcss-preset-env": "^6.6.0",
|
|
83
|
+
"prettier": "^1.18.2",
|
|
84
|
+
"sass": "^1.21.0",
|
|
82
85
|
"sass-loader": "^7.1.0",
|
|
83
|
-
"standard-version": "^
|
|
84
|
-
"strip-ansi": "^5.
|
|
85
|
-
"webpack": "^4.
|
|
86
|
+
"standard-version": "^6.0.1",
|
|
87
|
+
"strip-ansi": "^5.2.0",
|
|
88
|
+
"webpack": "^4.33.0"
|
|
86
89
|
},
|
|
87
90
|
"keywords": [
|
|
88
91
|
"webpack",
|
|
@@ -90,39 +93,5 @@
|
|
|
90
93
|
"loader",
|
|
91
94
|
"url",
|
|
92
95
|
"import"
|
|
93
|
-
]
|
|
94
|
-
"babel": {
|
|
95
|
-
"presets": [
|
|
96
|
-
[
|
|
97
|
-
"@babel/preset-env",
|
|
98
|
-
{
|
|
99
|
-
"targets": {
|
|
100
|
-
"node": "6.9.0"
|
|
101
|
-
},
|
|
102
|
-
"useBuiltIns": "usage"
|
|
103
|
-
}
|
|
104
|
-
]
|
|
105
|
-
]
|
|
106
|
-
},
|
|
107
|
-
"husky": {
|
|
108
|
-
"hooks": {
|
|
109
|
-
"pre-commit": "lint-staged"
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
"lint-staged": {
|
|
113
|
-
"*.js": [
|
|
114
|
-
"eslint --fix",
|
|
115
|
-
"git add"
|
|
116
|
-
]
|
|
117
|
-
},
|
|
118
|
-
"commitlint": {
|
|
119
|
-
"extends": [
|
|
120
|
-
"@commitlint/config-conventional"
|
|
121
|
-
]
|
|
122
|
-
},
|
|
123
|
-
"prettier": {
|
|
124
|
-
"singleQuote": true,
|
|
125
|
-
"trailingComma": "es5",
|
|
126
|
-
"arrowParens": "always"
|
|
127
|
-
}
|
|
96
|
+
]
|
|
128
97
|
}
|