We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12f8f21 commit 3475184Copy full SHA for 3475184
index.js
@@ -1,6 +1,7 @@
1
var loaderUtils = require('loader-utils'),
2
_ = require('lodash'),
3
path = require('path'),
4
+ fs = require('fs'),
5
helper = require('./src/helper');
6
7
var defaultOptions = {
@@ -19,7 +20,7 @@ module.exports = function (content, map) {
19
20
var inputFile = map.file || path.basename(this.resourcePath),
21
options = _.assign({}, _.cloneDeep(defaultOptions), loaderOptions),
22
dirPath = this.context,
- fileNames = this.fs.readdirSync(dirPath).filter(function (file) {
23
+ fileNames = fs.readdirSync(dirPath).filter(function (file) {
24
return !file.match(/^\./);
25
});
26
0 commit comments