alias-resolve-loader
Advanced tools
Comparing version 1.0.2 to 1.0.3
14
index.js
@@ -8,11 +8,11 @@ 'use strict'; | ||
module.exports = function () { | ||
var loader = this; | ||
var resourcePath = loader.resourcePath; | ||
var params = loaderUtils.parseQuery(loader.query); | ||
var aliases = params.plugins || loader.options.aliasesResolve; | ||
var callback = loader.async(); | ||
var loader = this; | ||
var resourcePath = loader.resourcePath; | ||
var params = loaderUtils.parseQuery(loader.query); | ||
var aliases = params.plugins || loader.options.aliasesResolve; | ||
var callback = loader.async(); | ||
callback(null, cssAliasses(fs.readFileSync(resourcePath, 'utf8'), resourcePath, aliases)); | ||
callback(null, cssAliasses(fs.readFileSync(resourcePath, 'utf8'), resourcePath, aliases)); | ||
return; | ||
return; | ||
}; |
{ | ||
"name": "alias-resolve-loader", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Webpack preLoader lets you create custom aliases for CSS,less and SASS properties with an @alias rule", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "node_modules/.bin/eslint .", | ||
"patch": "npm version patch && git push origin master --follow-tags && npm publish", | ||
"minor": "npm version minor && git push origin master --follow-tags && npm publish", | ||
"major": "npm version major && git push origin master --follow-tags && npm publish" | ||
}, | ||
@@ -14,3 +17,3 @@ "repository": { | ||
"author": "Igor Ognichenko <ognichenko.igor@gmail.com>", | ||
"license": "ISC", | ||
"license": "MIT", | ||
"bugs": { | ||
@@ -33,6 +36,9 @@ "url": "https://github.com/RobinCK/alias-resolve-loader/issues" | ||
"dependencies": { | ||
"css-aliases": "^1.1.1", | ||
"css-aliases": "^1.1.4", | ||
"fs": "0.0.1-security", | ||
"loader-utils": "^0.2.16" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^3.19.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
32853
7
0
1
Updatedcss-aliases@^1.1.4