weboptimizer 2.0.1300 → 2.0.1302
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 +8 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1302",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -668,7 +668,7 @@
|
|
|
668
668
|
},
|
|
669
669
|
"template": {
|
|
670
670
|
"filePath": {
|
|
671
|
-
"__evaluate__": "`${Tools.isFileSync(path.resolve(self.path.source.base,
|
|
671
|
+
"__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')}`"
|
|
672
672
|
},
|
|
673
673
|
"postCompileOptions": {
|
|
674
674
|
"compileSteps": 0
|
|
@@ -1477,12 +1477,7 @@
|
|
|
1477
1477
|
"files": {
|
|
1478
1478
|
"defaultHTML": {
|
|
1479
1479
|
"filename": "test.html",
|
|
1480
|
-
"inject": "head"
|
|
1481
|
-
"template": {
|
|
1482
|
-
"filePath": {
|
|
1483
|
-
"__evaluate__": "`${Tools.isFileSync(path.resolve(self.path.source.base, 'test.html.ejs')) ? path.resolve(self.path.source.base, 'test.html.ejs') : path.resolve(webOptimizerPath, 'index.html.ejs')}`"
|
|
1484
|
-
}
|
|
1485
|
-
}
|
|
1480
|
+
"inject": "head"
|
|
1486
1481
|
},
|
|
1487
1482
|
"html": []
|
|
1488
1483
|
},
|
|
@@ -1512,12 +1507,7 @@
|
|
|
1512
1507
|
"files": {
|
|
1513
1508
|
"defaultHTML": {
|
|
1514
1509
|
"filename": "test.html",
|
|
1515
|
-
"inject": "head"
|
|
1516
|
-
"template": {
|
|
1517
|
-
"filePath": {
|
|
1518
|
-
"__evaluate__": "`${Tools.isFileSync(path.resolve(self.path.source.base, 'test.html.ejs')) ? path.resolve(self.path.source.base, 'test.html.ejs') : path.resolve(webOptimizerPath, 'index.html.ejs')}`"
|
|
1519
|
-
}
|
|
1520
|
-
}
|
|
1510
|
+
"inject": "head"
|
|
1521
1511
|
}
|
|
1522
1512
|
},
|
|
1523
1513
|
"inPlace": {
|
|
@@ -1619,6 +1609,9 @@
|
|
|
1619
1609
|
"devMiddleware": {
|
|
1620
1610
|
"index": {
|
|
1621
1611
|
"__evaluate__": "self.files.defaultHTML.filename"
|
|
1612
|
+
},
|
|
1613
|
+
"mimeTypes": {
|
|
1614
|
+
"ejs": "text/html"
|
|
1622
1615
|
}
|
|
1623
1616
|
}
|
|
1624
1617
|
}
|
|
@@ -1660,12 +1653,7 @@
|
|
|
1660
1653
|
},
|
|
1661
1654
|
"defaultHTML": {
|
|
1662
1655
|
"filename": "playground.html",
|
|
1663
|
-
"inject": "head"
|
|
1664
|
-
"template": {
|
|
1665
|
-
"filePath": {
|
|
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')}`"
|
|
1667
|
-
}
|
|
1668
|
-
}
|
|
1656
|
+
"inject": "head"
|
|
1669
1657
|
},
|
|
1670
1658
|
"html": {
|
|
1671
1659
|
"__evaluate__": "2 < self.givenCommandLineArguments.length && ['test:browser', 'serve'].includes(self.givenCommandLineArguments[2]) ? [{}] : []"
|