weboptimizer 2.0.1568 → 2.0.1570

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "2.0.1568",
3
+ "version": "2.0.1570",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -915,11 +915,6 @@
915
915
  "optimizer": {
916
916
  "babelMinify": {
917
917
  "bundle": {
918
- "plugin": {
919
- "parserOpts": {
920
- "strictMode": false
921
- }
922
- },
923
918
  "transform": {
924
919
  "removeConsole": true,
925
920
  "removeDebugger": true,
@@ -1094,8 +1089,7 @@
1094
1089
  "cache": true,
1095
1090
  "compileDebug": false,
1096
1091
  "debug": false,
1097
- "strict": true,
1098
- "_with": false
1092
+ "localsName": "_"
1099
1093
  },
1100
1094
  "compress": {
1101
1095
  "html": {
@@ -1600,7 +1594,9 @@
1600
1594
  "options": {
1601
1595
  "compiler": {
1602
1596
  "compileDebug": true,
1603
- "debug": true
1597
+ "debug": true,
1598
+ "strict": true,
1599
+ "_with": false
1604
1600
  }
1605
1601
  }
1606
1602
  }
@@ -760,7 +760,7 @@ var genericLoader = {
760
760
  html: {
761
761
  // NOTE: This is only for the main entry template.
762
762
  main: {
763
- test: new RegExp('^' + (0, _clientnode.escapeRegularExpressions)(configuration.files.defaultHTML.template.filePath) + '(?: \\?.*)?$'),
763
+ test: new RegExp('^' + (0, _clientnode.escapeRegularExpressions)(configuration.files.defaultHTML.template.filePath) + '(?:\\?.*)?$'),
764
764
  use: configuration.files.defaultHTML.template.use
765
765
  },
766
766
  ejs: {
@@ -773,7 +773,7 @@ var genericLoader = {
773
773
  }));
774
774
  },
775
775
  include: configuration.path.source.asset.template,
776
- test: /\.html\.ejs(?: \?.*)?$/i,
776
+ test: /\.html\.ejs(?:\?.*)?$/i,
777
777
  use: _module.preprocessor.html.additional.pre.map(createEvaluateMapper('html.ejs')).concat(
778
778
  /*
779
779
  We might need to evaluate ejs before we are able to
@@ -803,7 +803,7 @@ var genericLoader = {
803
803
  }));
804
804
  },
805
805
  include: configuration.path.source.asset.template,
806
- test: /\.html(?: \?.*)?$/i,
806
+ test: /\.html(?:\?.*)?$/i,
807
807
  use: _module.html.additional.pre.map(createEvaluateMapper('html')).concat({
808
808
  loader: 'file?name=' + (0, _path.join)((0, _path.relative)(configuration.path.target.base, configuration.path.target.asset.template), "[name][ext]?".concat(configuration.hashAlgorithm, "=") + '[contenthash]')
809
809
  }, {
@@ -998,7 +998,7 @@ if (configuration.files.compose.cascadingStyleSheet && plugins.MiniCSSExtract) {
998
998
  So we inject live reload and hot module replacement manually.
999
999
  */
1000
1000
  if (htmlAvailable && configuration.debug && configuration.development.server.liveReload && !Object.prototype.hasOwnProperty.call(configuration.injection.entry.normalized, 'developmentHandler') && (configuration.development.includeClient || typeof configuration.development.includeClient !== 'boolean' && ['serve', 'test:browser'].includes(configuration.givenCommandLineArguments[2]))) {
1001
- configuration.injection.entry.normalized.developmentHandler = ['webpack-dev-server/client/index.js?' + 'live-reload=true' + "&hot=".concat(configuration.development.server.hot ? 'true' : 'false') + "&http".concat(configuration.development.server.https ? 's' : '', ": //") + "".concat(configuration.development.server.host, ": ") + String(configuration.development.server.port)];
1001
+ configuration.injection.entry.normalized.developmentHandler = ['webpack-dev-server/client/index.js?' + 'live-reload=true' + "&hot=".concat(configuration.development.server.hot ? 'true' : 'false') + "&http".concat(configuration.development.server.https ? 's' : '', "://") + "".concat(configuration.development.server.host, ": ") + String(configuration.development.server.port)];
1002
1002
  if (configuration.development.server.hot) {
1003
1003
  configuration.injection.entry.normalized.developmentHandler.push('webpack/hot/dev-server.js');
1004
1004
  configuration.development.server.hot = false;