@studyportals/webpack-helper 2.4.3 → 2.4.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.
@@ -1,49 +1,46 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- var MiniCssExtractPlugin = require('mini-css-extract-plugin');
4
- var JavascriptPreset = /** @class */ (function () {
5
- function JavascriptPreset() {
6
- }
7
- JavascriptPreset.prototype.getPlugins = function (filename) {
8
- return [
9
- new MiniCssExtractPlugin({
10
- filename: filename
11
- })
12
- ];
13
- };
14
- JavascriptPreset.prototype.getModule = function () {
15
- return {
16
- rules: [
17
- {
18
- test: /\.css$/,
19
- use: [
20
- MiniCssExtractPlugin.loader,
21
- 'css-loader'
22
- ]
23
- },
24
- {
25
- test: /\.scss$/,
26
- use: [
27
- MiniCssExtractPlugin.loader,
28
- 'css-loader',
29
- 'sass-loader'
30
- ]
31
- },
32
- {
33
- test: /\.jsx?$/,
34
- loader: 'babel-loader',
35
- exclude: /node_modules\/(?!@studyportals\/).*/
36
- }
37
- ]
38
- };
39
- };
40
- JavascriptPreset.prototype.getExtensions = function () {
41
- return [
42
- '*',
43
- '.js',
44
- '.json'
45
- ];
46
- };
47
- return JavascriptPreset;
48
- }());
49
- exports.JavascriptPreset = JavascriptPreset;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
4
+ class JavascriptPreset {
5
+ getPlugins(filename) {
6
+ return [
7
+ new MiniCssExtractPlugin({
8
+ filename
9
+ })
10
+ ];
11
+ }
12
+ getModule() {
13
+ return {
14
+ rules: [
15
+ {
16
+ test: /\.css$/,
17
+ use: [
18
+ MiniCssExtractPlugin.loader,
19
+ 'css-loader'
20
+ ],
21
+ },
22
+ {
23
+ test: /\.scss$/,
24
+ use: [
25
+ MiniCssExtractPlugin.loader,
26
+ 'css-loader',
27
+ 'sass-loader'
28
+ ],
29
+ },
30
+ {
31
+ test: /\.jsx?$/,
32
+ loader: 'babel-loader',
33
+ exclude: /node_modules\/(?!@studyportals\/).*/
34
+ }
35
+ ]
36
+ };
37
+ }
38
+ getExtensions() {
39
+ return [
40
+ '*',
41
+ '.js',
42
+ '.json'
43
+ ];
44
+ }
45
+ }
46
+ exports.JavascriptPreset = JavascriptPreset;
@@ -1,62 +1,59 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- var MiniCssExtractPlugin = require('mini-css-extract-plugin');
4
- var TypeScriptPreset = /** @class */ (function () {
5
- function TypeScriptPreset() {
6
- }
7
- TypeScriptPreset.prototype.getPlugins = function (filename) {
8
- return [
9
- new MiniCssExtractPlugin({
10
- filename: filename
11
- })
12
- ];
13
- };
14
- TypeScriptPreset.prototype.getModule = function () {
15
- return {
16
- rules: [
17
- {
18
- test: /\.css$/,
19
- use: [
20
- MiniCssExtractPlugin.loader,
21
- 'css-loader'
22
- ]
23
- },
24
- {
25
- test: /\.scss$/,
26
- use: [
27
- MiniCssExtractPlugin.loader,
28
- 'css-loader',
29
- 'sass-loader'
30
- ]
31
- },
32
- {
33
- test: /\.tsx?$/,
34
- loader: 'ts-loader',
35
- exclude: /node_modules\/(?!@studyportals\/).*/
36
- },
37
- {
38
- test: /\.js$/,
39
- loader: 'babel-loader',
40
- exclude: /node_modules\/(?!@studyportals\/).*/
41
- },
42
- {
43
- test: /\.(png|jpg|gif|svg)$/,
44
- loader: 'file-loader',
45
- options: {
46
- name: '[name].[ext]?[hash]'
47
- }
48
- }
49
- ]
50
- };
51
- };
52
- TypeScriptPreset.prototype.getExtensions = function () {
53
- return [
54
- '*',
55
- '.ts',
56
- '.js',
57
- '.json'
58
- ];
59
- };
60
- return TypeScriptPreset;
61
- }());
62
- exports.TypeScriptPreset = TypeScriptPreset;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
4
+ class TypeScriptPreset {
5
+ getPlugins(filename) {
6
+ return [
7
+ new MiniCssExtractPlugin({
8
+ filename
9
+ })
10
+ ];
11
+ }
12
+ getModule() {
13
+ return {
14
+ rules: [
15
+ {
16
+ test: /\.css$/,
17
+ use: [
18
+ MiniCssExtractPlugin.loader,
19
+ 'css-loader'
20
+ ],
21
+ },
22
+ {
23
+ test: /\.scss$/,
24
+ use: [
25
+ MiniCssExtractPlugin.loader,
26
+ 'css-loader',
27
+ 'sass-loader'
28
+ ],
29
+ },
30
+ {
31
+ test: /\.tsx?$/,
32
+ loader: 'ts-loader',
33
+ exclude: /node_modules\/(?!@studyportals\/).*/
34
+ },
35
+ {
36
+ test: /\.js$/,
37
+ loader: 'babel-loader',
38
+ exclude: /node_modules\/(?!@studyportals\/).*/
39
+ },
40
+ {
41
+ test: /\.(png|jpg|gif|svg)$/,
42
+ loader: 'file-loader',
43
+ options: {
44
+ name: '[name].[ext]?[hash]'
45
+ }
46
+ }
47
+ ]
48
+ };
49
+ }
50
+ getExtensions() {
51
+ return [
52
+ '*',
53
+ '.ts',
54
+ '.js',
55
+ '.json'
56
+ ];
57
+ }
58
+ }
59
+ exports.TypeScriptPreset = TypeScriptPreset;
@@ -1,85 +1,82 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- var webpack = require("webpack");
4
- var MiniCssExtractPlugin = require('mini-css-extract-plugin');
5
- var VueLoaderPlugin = require('vue-loader').VueLoaderPlugin;
6
- var VueTypeScriptPreset = /** @class */ (function () {
7
- function VueTypeScriptPreset() {
8
- }
9
- VueTypeScriptPreset.prototype.getPlugins = function (filename) {
10
- return [
11
- new webpack.DllReferencePlugin({
12
- manifest: require("@studyportals/vue-config/dist/library.json")
13
- }),
14
- new MiniCssExtractPlugin({
15
- filename: filename
16
- }),
17
- new VueLoaderPlugin()
18
- ];
19
- };
20
- VueTypeScriptPreset.prototype.getModule = function () {
21
- return {
22
- rules: [
23
- {
24
- test: /\.css$/,
25
- use: [
26
- MiniCssExtractPlugin.loader,
27
- 'css-loader'
28
- ]
29
- },
30
- {
31
- test: /\.scss$/,
32
- use: [
33
- MiniCssExtractPlugin.loader,
34
- 'css-loader',
35
- 'sass-loader'
36
- ]
37
- },
38
- {
39
- test: /\.vue$/,
40
- loader: 'vue-loader',
41
- options: {
42
- loaders: {
43
- 'scss': [
44
- 'vue-style-loader',
45
- 'css-loader',
46
- 'sass-loader'
47
- ]
48
- }
49
- }
50
- },
51
- {
52
- test: /\.tsx?$/,
53
- loader: 'ts-loader',
54
- exclude: /node_modules\/(?!@studyportals\/).*/,
55
- options: {
56
- appendTsSuffixTo: [/\.vue$/]
57
- }
58
- },
59
- {
60
- test: /\.js$/,
61
- loader: 'babel-loader',
62
- exclude: /node_modules\/(?!@studyportals\/).*/
63
- },
64
- {
65
- test: /\.(png|jpg|gif|svg)$/,
66
- loader: 'file-loader',
67
- options: {
68
- name: '[name].[ext]?[hash]'
69
- }
70
- },
71
- ]
72
- };
73
- };
74
- VueTypeScriptPreset.prototype.getExtensions = function () {
75
- return [
76
- '*',
77
- '.ts',
78
- '.js',
79
- '.vue',
80
- '.json'
81
- ];
82
- };
83
- return VueTypeScriptPreset;
84
- }());
85
- exports.VueTypeScriptPreset = VueTypeScriptPreset;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const webpack = require("webpack");
4
+ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
5
+ const VueLoaderPlugin = require('vue-loader').VueLoaderPlugin;
6
+ class VueTypeScriptPreset {
7
+ getPlugins(filename) {
8
+ return [
9
+ new webpack.DllReferencePlugin({
10
+ manifest: require("@studyportals/vue-config/dist/library.json")
11
+ }),
12
+ new MiniCssExtractPlugin({
13
+ filename
14
+ }),
15
+ new VueLoaderPlugin()
16
+ ];
17
+ }
18
+ getModule() {
19
+ return {
20
+ rules: [
21
+ {
22
+ test: /\.css$/,
23
+ use: [
24
+ MiniCssExtractPlugin.loader,
25
+ 'css-loader'
26
+ ],
27
+ },
28
+ {
29
+ test: /\.scss$/,
30
+ use: [
31
+ MiniCssExtractPlugin.loader,
32
+ 'css-loader',
33
+ 'sass-loader'
34
+ ],
35
+ },
36
+ {
37
+ test: /\.vue$/,
38
+ loader: 'vue-loader',
39
+ options: {
40
+ loaders: {
41
+ 'scss': [
42
+ 'vue-style-loader',
43
+ 'css-loader',
44
+ 'sass-loader'
45
+ ]
46
+ }
47
+ }
48
+ },
49
+ {
50
+ test: /\.tsx?$/,
51
+ loader: 'ts-loader',
52
+ exclude: /node_modules\/(?!@studyportals\/).*/,
53
+ options: {
54
+ appendTsSuffixTo: [/\.vue$/]
55
+ },
56
+ },
57
+ {
58
+ test: /\.js$/,
59
+ loader: 'babel-loader',
60
+ exclude: /node_modules\/(?!@studyportals\/).*/
61
+ },
62
+ {
63
+ test: /\.(png|jpg|gif|svg)$/,
64
+ loader: 'file-loader',
65
+ options: {
66
+ name: '[name].[ext]?[hash]'
67
+ }
68
+ },
69
+ ]
70
+ };
71
+ }
72
+ getExtensions() {
73
+ return [
74
+ '*',
75
+ '.ts',
76
+ '.js',
77
+ '.vue',
78
+ '.json'
79
+ ];
80
+ }
81
+ }
82
+ exports.VueTypeScriptPreset = VueTypeScriptPreset;