Skip to content

Commit 71e3ad4

Browse files
committed
support less and styuls
1 parent 3c572f3 commit 71e3ad4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = function loader (content) {
1212
if (originPublicPath === undefined) originPublicPath = options.publicPath;
1313
let _query = this._compilation.name;
1414
options.publicPath = function (url) {
15-
if (_query && /(?:\=|\.)(?:scss|css)$/.test(_query)) return handlePath(options.publicStylePath, url);
15+
if (_query && /(?:\=|\.)(?:scss|less|styl|stylus|css)$/.test(_query)) return handlePath(options.publicStylePath, url);
1616
else return handlePath(originPublicPath, url);
1717
};
1818
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-asset-loader",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "a file-loader for Vue solve the image relative path issues when HTML and CSS not in the same directory",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)