css-loader 0.24.0 → 0.25.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/lib/getLocalIdent.js +1 -1
- package/package.json +41 -41
- package/npm-debug.log.194228940 +0 -0
package/lib/getLocalIdent.js
CHANGED
|
@@ -12,5 +12,5 @@ module.exports = function getLocalIdent(loaderContext, localIdentName, localName
|
|
|
12
12
|
options.content = options.hashPrefix + request + "+" + localName;
|
|
13
13
|
localIdentName = localIdentName.replace(/\[local\]/gi, localName);
|
|
14
14
|
var hash = loaderUtils.interpolateName(loaderContext, localIdentName, options);
|
|
15
|
-
return hash.replace(new RegExp("[^a-zA-Z0-9\\-_\u00A0-\uFFFF]", "g"), "-").replace(/^([
|
|
15
|
+
return hash.replace(new RegExp("[^a-zA-Z0-9\\-_\u00A0-\uFFFF]", "g"), "-").replace(/^((-?[0-9])|--)/, "_$1");
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "css-loader",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"author": "Tobias Koppers @sokra",
|
|
5
|
-
"description": "css loader module for webpack",
|
|
6
|
-
"engines": {
|
|
7
|
-
"node": ">=0.12.0"
|
|
8
|
-
},
|
|
9
|
-
"dependencies": {
|
|
10
|
-
"babel-code-frame": "^6.11.0",
|
|
11
|
-
"css-selector-tokenizer": "^0.6.0",
|
|
12
|
-
"cssnano": ">=2.6.1 <4",
|
|
13
|
-
"loader-utils": "~0.2.2",
|
|
14
|
-
"lodash.camelcase": "^3.0.1",
|
|
15
|
-
"object-assign": "^4.0.1",
|
|
16
|
-
"postcss": "^5.0.6",
|
|
17
|
-
"postcss-modules-extract-imports": "^1.0.0",
|
|
18
|
-
"postcss-modules-local-by-default": "^1.0.1",
|
|
19
|
-
"postcss-modules-scope": "^1.0.0",
|
|
20
|
-
"postcss-modules-values": "^1.1.0",
|
|
21
|
-
"source-list-map": "^0.1.4"
|
|
22
|
-
},
|
|
23
|
-
"devDependencies": {
|
|
24
|
-
"codecov.io": "^0.1.2",
|
|
25
|
-
"coveralls": "^2.11.2",
|
|
26
|
-
"istanbul": "^0.3.13",
|
|
27
|
-
"mocha": "^2.2.4",
|
|
28
|
-
"should": "^7.0.1"
|
|
29
|
-
},
|
|
30
|
-
"scripts": {
|
|
31
|
-
"test": "mocha",
|
|
32
|
-
"travis": "npm run cover -- --report lcovonly",
|
|
33
|
-
"cover": "istanbul cover node_modules/mocha/bin/_mocha",
|
|
34
|
-
"publish-patch": "mocha && npm version patch && git push && git push --tags && npm publish"
|
|
35
|
-
},
|
|
36
|
-
"repository": {
|
|
37
|
-
"type": "git",
|
|
38
|
-
"url": "git@github.com:webpack/css-loader.git"
|
|
39
|
-
},
|
|
40
|
-
"license": "MIT"
|
|
41
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "css-loader",
|
|
3
|
+
"version": "0.25.0",
|
|
4
|
+
"author": "Tobias Koppers @sokra",
|
|
5
|
+
"description": "css loader module for webpack",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=0.12.0"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"babel-code-frame": "^6.11.0",
|
|
11
|
+
"css-selector-tokenizer": "^0.6.0",
|
|
12
|
+
"cssnano": ">=2.6.1 <4",
|
|
13
|
+
"loader-utils": "~0.2.2",
|
|
14
|
+
"lodash.camelcase": "^3.0.1",
|
|
15
|
+
"object-assign": "^4.0.1",
|
|
16
|
+
"postcss": "^5.0.6",
|
|
17
|
+
"postcss-modules-extract-imports": "^1.0.0",
|
|
18
|
+
"postcss-modules-local-by-default": "^1.0.1",
|
|
19
|
+
"postcss-modules-scope": "^1.0.0",
|
|
20
|
+
"postcss-modules-values": "^1.1.0",
|
|
21
|
+
"source-list-map": "^0.1.4"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"codecov.io": "^0.1.2",
|
|
25
|
+
"coveralls": "^2.11.2",
|
|
26
|
+
"istanbul": "^0.3.13",
|
|
27
|
+
"mocha": "^2.2.4",
|
|
28
|
+
"should": "^7.0.1"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"test": "mocha",
|
|
32
|
+
"travis": "npm run cover -- --report lcovonly",
|
|
33
|
+
"cover": "istanbul cover node_modules/mocha/bin/_mocha",
|
|
34
|
+
"publish-patch": "mocha && npm version patch && git push && git push --tags && npm publish"
|
|
35
|
+
},
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "git@github.com:webpack/css-loader.git"
|
|
39
|
+
},
|
|
40
|
+
"license": "MIT"
|
|
41
|
+
}
|
package/npm-debug.log.194228940
DELETED
|
File without changes
|