weboptimizer 2.0.1297 → 2.0.1300
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/package.json +5 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1300",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -1617,7 +1617,9 @@
|
|
|
1617
1617
|
"development": {
|
|
1618
1618
|
"server": {
|
|
1619
1619
|
"devMiddleware": {
|
|
1620
|
-
"index":
|
|
1620
|
+
"index": {
|
|
1621
|
+
"__evaluate__": "self.files.defaultHTML.filename"
|
|
1622
|
+
}
|
|
1621
1623
|
}
|
|
1622
1624
|
}
|
|
1623
1625
|
},
|
|
@@ -1661,7 +1663,7 @@
|
|
|
1661
1663
|
"inject": "head",
|
|
1662
1664
|
"template": {
|
|
1663
1665
|
"filePath": {
|
|
1664
|
-
"__evaluate__": "`${Tools.isFileSync(path.resolve(self.path.source.base,
|
|
1666
|
+
"__evaluate__": "`${Tools.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')}`"
|
|
1665
1667
|
}
|
|
1666
1668
|
}
|
|
1667
1669
|
},
|