Skip to content

Commit 1c1de53

Browse files
committed
🔥 Remove vue name check and publish v0.2.0
1 parent 8dce168 commit 1c1de53

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

lib/getLocalIdent.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ module.exports = function getLocalIdent(loaderContext, localIdentName, localName
1616
else
1717
localIdentName = localIdentName.replace(/\[local\]/gi, localName);
1818

19-
var vuePath = loaderContext.resourcePath;
20-
if (!vuePath.endsWith('.vue'))
21-
vuePath = path.dirname(vuePath);
22-
var vueName = path.basename(vuePath);
23-
if (!vueName.startsWith('u-'))
24-
localIdentName += '_[hash:base64:6]';
25-
2619
var hash = loaderUtils.interpolateName(loaderContext, localIdentName, options);
2720
return hash.replace(new RegExp("[^a-zA-Z0-9\\-_\u00A0-\uFFFF]", "g"), "-").replace(/^((-?[0-9])|--)/, "_$1");
2821
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vusion-css-loader",
3-
"version": "0.1.4",
3+
"version": "0.2.0",
44
"author": "Tobias Koppers @sokra",
55
"description": "css loader module for webpack",
66
"engines": {

0 commit comments

Comments
 (0)