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: 6b9be7c0874e8efdf2c1c15c2a38bf1cc107136626239924aaf0d2407983c4f6
4
- data.tar.gz: e3c584bc62ca84f981d1800664c510d332c92a7d4f018c91d1e0a7ccf853e98f
3
+ metadata.gz: fd453ee3d4810ca78bb927ef17fcb1f71e67bbb6e9f5baa7428d896ed279c3da
4
+ data.tar.gz: 89d2bd2e562871f4a3fcead09cf1227926973a361275a36761c5afd51a57a1cc
5
5
  SHA512:
6
- metadata.gz: 4ef420caee7d006a798b70b5bbfc51d46c1d3520d15be5afe7b8f3af4cf627c7c7450490c7531c63b25818e358456afef1572983cbe3b9d3c4fb781f22ba977f
7
- data.tar.gz: 4907ac5ebacb26340fcdcc0016801b762030398d36b4c3884d89df95ab5d38a174257b1e957eaa3c467122692d3b75ac9892bc210d912c5de3f3535eea5e96a0
6
+ metadata.gz: 86761a66291054aca8c1e1f3944120be2bea2c475a716beaa5f30eeac75053bb780003045d9cf6640b9e32744bfdf476450297e4ec2c4a197885f7dd6193943b
7
+ data.tar.gz: 65d38c7126c97c97ddec18758478326e85fed6db336ca500d0b23a48cfac71d7bbba8b58f9026fae3774f0583224364ac15d2a6adfa6a84f462f63998c5d8266
@@ -19,7 +19,7 @@
19
19
  "parallel-webpack": "^2.4.0",
20
20
  "sass-loader": "^7.1.0",
21
21
  "style-loader": "^0.23.1",
22
- "terser-webpack-plugin": "^1.2.3",
22
+ "terser-webpack-plugin": "^1.3.0",
23
23
  "webpack": "^4.30.0",
24
24
  "webpack-assets-manifest": "^3.1.1",
25
25
  "webpack-cli": "^3.3.0",
@@ -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);
@@ -1,3 +1,3 @@
1
1
  module OpalWebpackLoader
2
- VERSION="0.9.0"
2
+ VERSION="0.9.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opal-webpack-loader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann