@studyportals/webpack-helper 3.0.0-beta.6 → 3.0.0-beta.7
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/README.md +5 -1
- package/package.json +2 -2
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 =
|
|
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.
|
|
3
|
+
"version": "3.0.0-beta.7",
|
|
4
4
|
"description": "A collection of standard configurations and helpers for webpack.",
|
|
5
5
|
"main": "src/main.js",
|
|
6
6
|
"scripts": {
|
|
@@ -36,9 +36,9 @@
|
|
|
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
43
|
"terser-webpack-plugin": "^5.3.1",
|
|
44
44
|
"ts-loader": "^9.2.6",
|