@studyportals/webpack-helper 3.0.0-beta.4 → 3.0.0-beta.8

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.
Files changed (2) hide show
  1. package/README.md +5 -1
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  WebpackHelper is a utility that makes it easy to set up a webpack configuration for Studyportals' projects that adhere to our [Webpack quality criteria](https://knowledge-vault.studyportals.xyz/quality-standards/front-end/webpack-quality-criteria.html).
4
4
 
5
5
  ## Table of Contents
6
+ - [Webpack version](#webpack-version)
6
7
  - [Quick Start](#quick-start)
7
8
  - [Configuration](#configuration)
8
9
  - [entry](#entry-required)
@@ -18,6 +19,9 @@ WebpackHelper is a utility that makes it easy to set up a webpack configuration
18
19
  - [vue-typescript](#vue-typescript)
19
20
  - [DoD compliance with Babel and Browserslist](#dod-compliance-with-babel-and-browserslist)
20
21
 
22
+ ## Webpack version
23
+ This version of WebpackHelper is based on webpack 5. Some earlier WebpackHelper versions used earlier versions of Webpack. If you get syntax errors when updating to the latest version of WebpackHelper, please check out the [Webpack documentation](https://webpack.js.org/configuration/).
24
+
21
25
  ## Quick Start
22
26
 
23
27
  ```bash
@@ -72,7 +76,7 @@ const configuration = WebpackHelper.create({
72
76
  When your configuration is created you can get an instance of it for the correct environment and export it for webpack to use like so:
73
77
 
74
78
  ```javascript
75
- module.exports = mode => configuration.get(mode);
79
+ module.exports = (env, details) => configuration.get(details.mode);
76
80
  ```
77
81
  ## Configuration
78
82
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/webpack-helper",
3
- "version": "3.0.0-beta.4",
3
+ "version": "3.0.0-beta.8",
4
4
  "description": "A collection of standard configurations and helpers for webpack.",
5
5
  "main": "src/main.js",
6
6
  "scripts": {
@@ -31,26 +31,26 @@
31
31
  "@studyportals/bob-manifest-generator": "^2.3.1",
32
32
  "@studyportals/browserslist-config": "^1.2.0",
33
33
  "@studyportals/dll-availability-tracker": "^1.0.2",
34
- "@studyportals/vue-config": "4.0.0-beta.2",
34
+ "@studyportals/vue-config": "4.0.0-beta.4",
35
35
  "babel-loader": "^8.2.3",
36
36
  "css-loader": "^6.5.1",
37
37
  "file-loader": "^6.2.0",
38
38
  "mini-css-extract-plugin": "^2.5.3",
39
- "node-sass": "^7.0.1",
40
39
  "optimize-css-assets-webpack-plugin": "^5.0.8",
41
40
  "path": "^0.12.7",
41
+ "sass": "^1.49.7",
42
42
  "sass-loader": "^12.4.0",
43
- "terser-webpack-plugin": "^5.3.0",
43
+ "terser-webpack-plugin": "^5.3.1",
44
44
  "ts-loader": "^9.2.6",
45
45
  "typescript": "^3.7.2",
46
46
  "vue-loader": "^16.2.0",
47
- "webpack": "^5.65.0",
47
+ "webpack": "^5.68.0",
48
48
  "webpack-cli": "^4.9.1",
49
49
  "webpack-merge": "^5.8.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/jest": "^27.4.0",
53
- "@types/node": "^17.0.8",
53
+ "@types/node": "^17.0.14",
54
54
  "babel-jest": "^25.1.0",
55
55
  "jest": "^25.1.0",
56
56
  "ts-jest": "^25.2.1"