opal-webpack-loader 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd453ee3d4810ca78bb927ef17fcb1f71e67bbb6e9f5baa7428d896ed279c3da
|
4
|
+
data.tar.gz: 89d2bd2e562871f4a3fcead09cf1227926973a361275a36761c5afd51a57a1cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86761a66291054aca8c1e1f3944120be2bea2c475a716beaa5f30eeac75053bb780003045d9cf6640b9e32744bfdf476450297e4ec2c4a197885f7dd6193943b
|
7
|
+
data.tar.gz: 65d38c7126c97c97ddec18758478326e85fed6db336ca500d0b23a48cfac71d7bbba8b58f9026fae3774f0583224364ac15d2a6adfa6a84f462f63998c5d8266
|
@@ -1,17 +1,15 @@
|
|
1
1
|
const path = require('path');
|
2
2
|
const OwlResolver = require('opal-webpack-loader/resolver');
|
3
3
|
const CompressionPlugin = require("compression-webpack-plugin"); // for gzipping the packs
|
4
|
-
const WebpackAssetsManifest = require('webpack-assets-manifest');
|
5
4
|
const TerserPlugin = require('terser-webpack-plugin');
|
5
|
+
const WebpackAssetsManifest = require('webpack-assets-manifest');
|
6
6
|
|
7
7
|
const common_config = {
|
8
8
|
context: path.resolve(__dirname, '<%= opal_directory %>'),
|
9
9
|
mode: "production",
|
10
10
|
optimization: {
|
11
11
|
minimize: true, // minimize
|
12
|
-
minimizer: [
|
13
|
-
new TerserPlugin({ cache: true })
|
14
|
-
]
|
12
|
+
minimizer: [new TerserPlugin({ parallel: true, cache: true })]
|
15
13
|
},
|
16
14
|
performance: {
|
17
15
|
maxAssetSize: 20000000,
|
@@ -29,7 +27,7 @@ const common_config = {
|
|
29
27
|
},
|
30
28
|
plugins: [
|
31
29
|
new CompressionPlugin({ test: /^((?!application_ssr).)*$/, cache: true }), // gzip compress, exclude application_ssr.js
|
32
|
-
new WebpackAssetsManifest({ publicPath: true }) // generate manifest
|
30
|
+
new WebpackAssetsManifest({ publicPath: true, merge: true }) // generate manifest
|
33
31
|
],
|
34
32
|
module: {
|
35
33
|
rules: [
|
@@ -86,23 +84,17 @@ const common_config = {
|
|
86
84
|
|
87
85
|
const browser_config = {
|
88
86
|
target: 'web',
|
89
|
-
entry: {
|
90
|
-
application: [path.resolve(__dirname, '<%= js_entry %>')]
|
91
|
-
}
|
87
|
+
entry: { application: [path.resolve(__dirname, '<%= js_entry %>')] }
|
92
88
|
};
|
93
89
|
|
94
90
|
const ssr_config = {
|
95
91
|
target: 'node',
|
96
|
-
entry: {
|
97
|
-
application_ssr: [path.resolve(__dirname, '<%= js_ssr_entry %>')]
|
98
|
-
}
|
92
|
+
entry: { application_ssr: [path.resolve(__dirname, '<%= js_ssr_entry %>')] }
|
99
93
|
};
|
100
94
|
|
101
95
|
const web_worker_config = {
|
102
96
|
target: 'webworker',
|
103
|
-
entry: {
|
104
|
-
web_worker: [path.resolve(__dirname, '<%= js_web_worker_entry %>')]
|
105
|
-
}
|
97
|
+
entry: { web_worker: [path.resolve(__dirname, '<%= js_web_worker_entry %>')] }
|
106
98
|
};
|
107
99
|
|
108
100
|
const browser = Object.assign({}, common_config, browser_config);
|