Skip to content

Commit 9b6f9c1

Browse files
committed
quick code simplification
1 parent f64304b commit 9b6f9c1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ function cssnextLoader(contents){
77
options.features = assign({}, this.options.cssnext ? this.options.cssnext.features : null)
88
options.features.import = assign({}, options.features.import || null)
99
options.features.import.onImport = function(files){
10-
files.forEach(function(file){
11-
this.addDependency(file)
12-
}, this)
10+
files.forEach(this.addDependency)
1311
}.bind(this)
1412
try {
1513
return cssnext(contents, options)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cssnext-loader",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "webpack loader for cssnext",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)