weboptimizer 2.0.1569 → 2.0.1571
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 +4 -2
- package/package.json +10 -4
package/ejsLoader.js
CHANGED
|
@@ -69,6 +69,9 @@ var loader = exports.loader = function loader(source) {
|
|
|
69
69
|
replacements: {}
|
|
70
70
|
}
|
|
71
71
|
}, this.getOptions ? this.getOptions() : (_ref = this.query) !== null && _ref !== void 0 ? _ref : {}), /#%%%#/g, '!');
|
|
72
|
+
console.log();
|
|
73
|
+
console.log('A', givenOptions, source.substring(0, 300));
|
|
74
|
+
console.log();
|
|
72
75
|
var _compile = function compile(template) {
|
|
73
76
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : givenOptions.compiler;
|
|
74
77
|
var compileSteps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 2;
|
|
@@ -228,8 +231,7 @@ var loader = exports.loader = function loader(source) {
|
|
|
228
231
|
compileDebug: givenOptions.debug,
|
|
229
232
|
debug: givenOptions.debug,
|
|
230
233
|
filename: this.resourcePath || 'unknown',
|
|
231
|
-
isString: true
|
|
232
|
-
localsName: 'scope'
|
|
234
|
+
isString: true
|
|
233
235
|
}), givenOptions.compileSteps)(givenOptions.locals || {});
|
|
234
236
|
};
|
|
235
237
|
var _default = exports["default"] = loader;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1571",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -668,7 +668,9 @@
|
|
|
668
668
|
"__evaluate__": "`${filesystem.isFileSync(path.resolve(self.path.source.base, `${self.files.defaultHTML.filename}.ejs`)) ? path.resolve(self.path.source.base, `${self.files.defaultHTML.filename}.ejs`) : path.resolve(webOptimizerPath, 'index.html.ejs')}`"
|
|
669
669
|
},
|
|
670
670
|
"postCompileOptions": {
|
|
671
|
-
"compileSteps": 0
|
|
671
|
+
"compileSteps": 0,
|
|
672
|
+
"strict": true,
|
|
673
|
+
"_with": false
|
|
672
674
|
},
|
|
673
675
|
"use": [
|
|
674
676
|
{
|
|
@@ -1089,7 +1091,9 @@
|
|
|
1089
1091
|
"cache": true,
|
|
1090
1092
|
"compileDebug": false,
|
|
1091
1093
|
"debug": false,
|
|
1092
|
-
"localsName": "_"
|
|
1094
|
+
"localsName": "_",
|
|
1095
|
+
"strict": true,
|
|
1096
|
+
"_with": false
|
|
1093
1097
|
},
|
|
1094
1098
|
"compress": {
|
|
1095
1099
|
"html": {
|
|
@@ -1594,7 +1598,9 @@
|
|
|
1594
1598
|
"options": {
|
|
1595
1599
|
"compiler": {
|
|
1596
1600
|
"compileDebug": true,
|
|
1597
|
-
"debug": true
|
|
1601
|
+
"debug": true,
|
|
1602
|
+
"strict": true,
|
|
1603
|
+
"_with": false
|
|
1598
1604
|
}
|
|
1599
1605
|
}
|
|
1600
1606
|
}
|