@studyportals/webpack-helper 3.2.1 → 3.2.4-beta.0

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": "@studyportals/webpack-helper",
3
- "version": "3.2.1",
3
+ "version": "3.2.4-beta.0",
4
4
  "description": "A collection of standard configurations and helpers for webpack.",
5
5
  "main": "src/main.js",
6
6
  "scripts": {
@@ -31,7 +31,7 @@
31
31
  "@studyportals/bob-manifest-generator": "^3.0.0",
32
32
  "@studyportals/browserslist-config": "^1.2.0",
33
33
  "@studyportals/dll-availability-tracker": "^2.0.0",
34
- "@studyportals/vue-config": "^4.1.0",
34
+ "@studyportals/vue-config": "^4.1.2",
35
35
  "babel-loader": "^8.2.3",
36
36
  "css-loader": "^6.5.1",
37
37
  "file-loader": "^6.2.0",
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DevelopmentConfig = void 0;
4
3
  exports.DevelopmentConfig = {
5
4
  optimization: {
6
5
  minimize: false
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProductionConfig = void 0;
4
3
  const webpack = require('webpack');
5
4
  const cssMinimizerPlugin = require('css-minimizer-webpack-plugin');
6
5
  const DllAvailabilityTracker = require('@studyportals/dll-availability-tracker');
7
- const ProductionConfig = (bobConfig) => {
6
+ exports.ProductionConfig = (bobConfig) => {
8
7
  let dllDependencies = ['library'];
9
8
  if (bobConfig && bobConfig.hasOwnProperty('dllPackages')) {
10
9
  bobConfig.dllPackages.forEach((dependency) => dllDependencies.push(dependency.manifest.name));
@@ -20,7 +19,7 @@ const ProductionConfig = (bobConfig) => {
20
19
  }
21
20
  }),
22
21
  new cssMinimizerPlugin({
23
- cssProcessorPluginOptions: {
22
+ minimizerOptions: {
24
23
  preset: [
25
24
  'default',
26
25
  {
@@ -59,4 +58,3 @@ const ProductionConfig = (bobConfig) => {
59
58
  }
60
59
  };
61
60
  };
62
- exports.ProductionConfig = ProductionConfig;
package/src/enums/mode.js CHANGED
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Mode = void 0;
4
3
  var Mode;
5
4
  (function (Mode) {
6
5
  Mode["DEVELOPMENT"] = "development";
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Preset = void 0;
4
3
  var Preset;
5
4
  (function (Preset) {
6
5
  Preset["VUE_TYPESCRIPT"] = "vue-typescript";
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConfigurationFactory = void 0;
4
3
  const configuration_1 = require("../model/configuration");
5
4
  class ConfigurationFactory {
6
5
  create(options) {
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Configuration = void 0;
4
3
  const entry_1 = require("./entry");
5
4
  const output_1 = require("./output");
6
5
  const plugins_1 = require("./plugins");
@@ -31,7 +30,7 @@ class Configuration {
31
30
  const configPrd = options[mode_1.Mode.PRODUCTION] ? options[mode_1.Mode.PRODUCTION] : {};
32
31
  this.environmentSpecificConfig = {
33
32
  [mode_1.Mode.DEVELOPMENT]: merge([configDev, development_config_1.DevelopmentConfig]) || development_config_1.DevelopmentConfig,
34
- [mode_1.Mode.PRODUCTION]: merge([configPrd, (0, production_config_1.ProductionConfig)(this.bob)]) || (0, production_config_1.ProductionConfig)(this.bob)
33
+ [mode_1.Mode.PRODUCTION]: merge([configPrd, production_config_1.ProductionConfig(this.bob)]) || production_config_1.ProductionConfig(this.bob)
35
34
  };
36
35
  this.fileName = options.output.fileName || "[name]";
37
36
  }
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Entry = void 0;
4
3
  class Entry {
5
4
  constructor(entry) {
6
5
  this.entry = entry;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Module = void 0;
4
3
  const { merge } = require('webpack-merge');
5
4
  class Module {
6
5
  constructor(module = {}) {
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Output = void 0;
4
3
  class Output {
5
4
  constructor(outputConfig) {
6
5
  this.path = outputConfig.path;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Plugins = void 0;
4
3
  class Plugins {
5
4
  constructor(plugins = []) {
6
5
  this.plugins = [];
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.JavascriptPreset = void 0;
4
3
  const MiniCssExtractPlugin = require('mini-css-extract-plugin');
5
4
  class JavascriptPreset {
6
5
  getPlugins(filename) {
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TypeScriptPreset = void 0;
4
3
  const MiniCssExtractPlugin = require('mini-css-extract-plugin');
5
4
  class TypeScriptPreset {
6
5
  getPlugins(filename) {
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VueTypescriptNoCodeSplittingPreset = void 0;
4
3
  const MiniCssExtractPlugin = require('mini-css-extract-plugin');
5
4
  const VueLoaderPlugin = require('vue-loader').VueLoaderPlugin;
6
5
  const vue_typescript_preset_1 = require("./vue-typescript.preset");
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VueTypeScriptPreset = void 0;
4
3
  const mode_1 = require("../enums/mode");
5
4
  const webpack = require("webpack");
6
5
  const MiniCssExtractPlugin = require('mini-css-extract-plugin');
@@ -15,7 +14,8 @@ class VueTypeScriptPreset {
15
14
  manifest: require(`@studyportals/vue-config/dist/vue3_library${this.mode === mode_1.Mode.PRODUCTION ? '.min' : ''}.json`)
16
15
  }),
17
16
  new MiniCssExtractPlugin({
18
- filename
17
+ filename,
18
+ ignoreOrder: true
19
19
  }),
20
20
  new VueLoaderPlugin()
21
21
  ];