postcss-modules
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -51,3 +51,3 @@ 'use strict'; | ||
function getLoader(opts, plugins) { | ||
var root = opts.root || '/'; | ||
var root = typeof opts.root === 'undefined' ? '/' : opts.root; | ||
return typeof opts.Loader === 'function' ? new opts.Loader(root, plugins) : new _fileSystemLoader2.default(root, plugins); | ||
@@ -54,0 +54,0 @@ } |
@@ -0,2 +1,5 @@ | ||
## 0.7.1 | ||
* Allowed empty string as opts.root by Sharon Rolel (@Mosho1) https://github.com/css-modules/postcss-modules/pull/56 | ||
## 0.7.0 | ||
@@ -3,0 +6,0 @@ * Allow async getJSON by Philipp A. (@flying-sheep) https://github.com/css-modules/postcss-modules/pull/59 |
{ | ||
"name": "postcss-modules", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "PostCSS plugin to use CSS Modules everywhere", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -168,3 +168,3 @@ # postcss-modules [![Build Status][ci-img]][ci] | ||
require('postcss-modules')({ | ||
root: 'C:\', | ||
root: 'C:\\', | ||
}); | ||
@@ -171,0 +171,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
51336