weboptimizer 2.0.1422 → 2.0.1424
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 +18 -18
- package/type.d.ts +1 -0
- package/webpackConfigurator.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1424",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -539,6 +539,7 @@
|
|
|
539
539
|
"contextType": "main",
|
|
540
540
|
"debug": false,
|
|
541
541
|
"development": {
|
|
542
|
+
"includeClient": null,
|
|
542
543
|
"server": {
|
|
543
544
|
"client": false,
|
|
544
545
|
"compress": {
|
|
@@ -909,7 +910,7 @@
|
|
|
909
910
|
"..."
|
|
910
911
|
],
|
|
911
912
|
"urlFilter": {
|
|
912
|
-
"__evaluate__": "(attributeName, reference) =>
|
|
913
|
+
"__evaluate__": "(attributeName, reference) => !/[^?]+\\.js(\\?.*)?/.test(reference)"
|
|
913
914
|
}
|
|
914
915
|
}
|
|
915
916
|
}
|
|
@@ -1539,7 +1540,21 @@
|
|
|
1539
1540
|
},
|
|
1540
1541
|
"offline": null
|
|
1541
1542
|
},
|
|
1542
|
-
"webpack": {
|
|
1543
|
+
"webpack": {
|
|
1544
|
+
"watchOptions": {
|
|
1545
|
+
"ignored": [
|
|
1546
|
+
"./*.js",
|
|
1547
|
+
"**/node_modules",
|
|
1548
|
+
"**/package.json",
|
|
1549
|
+
{
|
|
1550
|
+
"__evaluate__": "path.resolve(self.path.target.base, '*.js')"
|
|
1551
|
+
},
|
|
1552
|
+
{
|
|
1553
|
+
"__evaluate__": "path.resolve(self.path.target.base, '**/*.js')"
|
|
1554
|
+
}
|
|
1555
|
+
]
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1543
1558
|
},
|
|
1544
1559
|
"debug": {
|
|
1545
1560
|
"debug": true,
|
|
@@ -1733,21 +1748,6 @@
|
|
|
1733
1748
|
"testBundle": "./test"
|
|
1734
1749
|
}
|
|
1735
1750
|
}
|
|
1736
|
-
},
|
|
1737
|
-
"webpack": {
|
|
1738
|
-
"watchOptions": {
|
|
1739
|
-
"ignored": [
|
|
1740
|
-
"./*.js",
|
|
1741
|
-
"**/node_modules",
|
|
1742
|
-
"**/package.json",
|
|
1743
|
-
{
|
|
1744
|
-
"__evaluate__": "path.resolve(self.path.target.base, '*.js')"
|
|
1745
|
-
},
|
|
1746
|
-
{
|
|
1747
|
-
"__evaluate__": "path.resolve(self.path.target.base, '**/*.js')"
|
|
1748
|
-
}
|
|
1749
|
-
]
|
|
1750
|
-
}
|
|
1751
1751
|
}
|
|
1752
1752
|
}
|
|
1753
1753
|
},
|
package/type.d.ts
CHANGED
package/webpackConfigurator.js
CHANGED
|
@@ -943,7 +943,7 @@ if (configuration.files.compose.cascadingStyleSheet && plugins.MiniCSSExtract) {
|
|
|
943
943
|
last module which would shadow main module (e.g. index).
|
|
944
944
|
So we inject live reload and hot module replacement manually.
|
|
945
945
|
*/
|
|
946
|
-
if (htmlAvailable && configuration.debug && configuration.development.server.liveReload && !configuration.injection.entry.normalized.developmentHandler && ['serve', 'test:browser'].includes(configuration.givenCommandLineArguments[2])) {
|
|
946
|
+
if (htmlAvailable && configuration.debug && configuration.development.server.liveReload && !configuration.injection.entry.normalized.developmentHandler && (configuration.development.includeClient || typeof configuration.development.includeClient !== 'boolean' && ['serve', 'test:browser'].includes(configuration.givenCommandLineArguments[2]))) {
|
|
947
947
|
configuration.injection.entry.normalized.developmentHandler = ['webpack-dev-server/client/index.js?' + 'live-reload=' + (configuration.development.server.liveReload ? 'true' : 'false') + "&hot=".concat(configuration.development.server.hot ? 'true' : 'false') + "&http".concat(configuration.development.server.https ? 's' : '', "://") + "".concat(configuration.development.server.host, ":") + "".concat(configuration.development.server.port)];
|
|
948
948
|
if (configuration.development.server.hot) {
|
|
949
949
|
configuration.injection.entry.normalized.developmentHandler.push('webpack/hot/dev-server.js');
|