weboptimizer 2.0.1091 → 2.0.1092
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ejsLoader.js +2 -4
- package/package.json +1 -1
package/ejsLoader.js
CHANGED
|
@@ -42,8 +42,6 @@ var _fs = require("fs");
|
|
|
42
42
|
|
|
43
43
|
var _htmlMinifier = require("html-minifier");
|
|
44
44
|
|
|
45
|
-
var _loaderUtils = require("loader-utils");
|
|
46
|
-
|
|
47
45
|
var _path = require("path");
|
|
48
46
|
|
|
49
47
|
var _configurator = _interopRequireDefault(require("./configurator"));
|
|
@@ -85,7 +83,7 @@ function _default(source) {
|
|
|
85
83
|
aliases: {},
|
|
86
84
|
replacements: {}
|
|
87
85
|
}
|
|
88
|
-
}, '
|
|
86
|
+
}, 'getOptions' in this ? this.getOptions() || {} : {}), /#%%%#/g, '!');
|
|
89
87
|
|
|
90
88
|
var compile = function compile(template) {
|
|
91
89
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : givenOptions.compiler;
|
|
@@ -265,7 +263,7 @@ function _default(source) {
|
|
|
265
263
|
client: Boolean(givenOptions.compileSteps % 2),
|
|
266
264
|
compileDebug: givenOptions.debug,
|
|
267
265
|
debug: givenOptions.debug,
|
|
268
|
-
filename:
|
|
266
|
+
filename: this.resourcePath || 'unknown',
|
|
269
267
|
isString: true,
|
|
270
268
|
localsName: 'scope'
|
|
271
269
|
}), givenOptions.compileSteps)(givenOptions.locals || {});
|