opal-webpack-loader 0.9.7 → 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opal-webpack-loader/templates/debug.js.erb +2 -6
- data/lib/opal-webpack-loader/templates/development.js.erb +5 -6
- data/lib/opal-webpack-loader/templates/package.json.erb +7 -9
- data/lib/opal-webpack-loader/templates/production.js.erb +3 -5
- data/lib/opal-webpack-loader/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38155ae3ce0dcfd20dc3051091a3422abc84aecd1735ebaeab2843f5a78b5b11
|
4
|
+
data.tar.gz: '0859a20709effc27570cfb873d65fb27782bf41833c096d92b9be852b68782b0'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd4886c7a010aef9a323ae7ee8cb517db564b74c0cfb292d4fc5f119287073a2ec6f23df14c29e17e6ba7257a6b42723f87be4c72b14ad2c6d895f4ee92b4fca
|
7
|
+
data.tar.gz: 1b850c409673c924ae0ddd932b95a37d1e9cbec6ca28f837ed8bdf3f3e084ab488215b2a08bc59e9e00038b7b6e2d7c45f15f6f09979bdf93da3de9419ccb679
|
@@ -1,6 +1,5 @@
|
|
1
1
|
const path = require('path');
|
2
2
|
const webpack = require('webpack');
|
3
|
-
const chokidar = require('chokidar');
|
4
3
|
const OwlResolver = require('opal-webpack-loader/resolver'); // to resolve ruby files
|
5
4
|
const ExtraWatchWebpackPlugin = require('extra-watch-webpack-plugin'); // to watch for added ruby files
|
6
5
|
|
@@ -51,7 +50,6 @@ const common_config = {
|
|
51
50
|
// test means "test for for file endings"
|
52
51
|
test: /.scss$/,
|
53
52
|
use: [
|
54
|
-
{ loader: "cache-loader" },
|
55
53
|
{ loader: "style-loader" },
|
56
54
|
{
|
57
55
|
loader: "css-loader",
|
@@ -60,7 +58,7 @@ const common_config = {
|
|
60
58
|
{
|
61
59
|
loader: "sass-loader",
|
62
60
|
options: {
|
63
|
-
includePaths: [path.resolve(__dirname, '<%= stylesheets_directory %>')],
|
61
|
+
sassOptions: { includePaths: [path.resolve(__dirname, '<%= stylesheets_directory %>')] },
|
64
62
|
sourceMap: true // set to false to speed up hot reloads
|
65
63
|
}
|
66
64
|
}
|
@@ -70,7 +68,6 @@ const common_config = {
|
|
70
68
|
// loader for .css files
|
71
69
|
test: /.css$/,
|
72
70
|
use: [
|
73
|
-
{ loader: "cache-loader" },
|
74
71
|
{ loader: "style-loader" },
|
75
72
|
{
|
76
73
|
loader: "css-loader",
|
@@ -80,13 +77,12 @@ const common_config = {
|
|
80
77
|
},
|
81
78
|
{
|
82
79
|
test: /.(png|svg|jpg|gif|woff|woff2|eot|ttf|otf)$/,
|
83
|
-
use: [ "
|
80
|
+
use: [ "file-loader" ]
|
84
81
|
},
|
85
82
|
{
|
86
83
|
// opal-webpack-loader will compile and include ruby files in the pack
|
87
84
|
test: /(\.js)?\.rb$/,
|
88
85
|
use: [
|
89
|
-
{ loader: "cache-loader" },
|
90
86
|
{
|
91
87
|
loader: 'opal-webpack-loader',
|
92
88
|
options: {
|
@@ -1,6 +1,5 @@
|
|
1
1
|
const path = require('path');
|
2
2
|
const webpack = require('webpack');
|
3
|
-
const chokidar = require('chokidar');
|
4
3
|
const OwlResolver = require('opal-webpack-loader/resolver'); // to resolve ruby files
|
5
4
|
const ExtraWatchWebpackPlugin = require('extra-watch-webpack-plugin'); // to watch for added ruby files
|
6
5
|
|
@@ -42,12 +41,14 @@ const common_config = {
|
|
42
41
|
// test means "test for for file endings"
|
43
42
|
test: /.scss$/,
|
44
43
|
use: [
|
45
|
-
{ loader: "cache-loader" },
|
46
44
|
{ loader: "style-loader" },
|
47
45
|
{ loader: "css-loader" },
|
48
46
|
{
|
49
47
|
loader: "sass-loader",
|
50
|
-
options: {
|
48
|
+
options: {
|
49
|
+
sassOptions: { includePaths: [path.resolve(__dirname, '<%= stylesheets_directory %>')] },
|
50
|
+
sourceMap: false
|
51
|
+
}
|
51
52
|
}
|
52
53
|
]
|
53
54
|
},
|
@@ -55,20 +56,18 @@ const common_config = {
|
|
55
56
|
// loader for .css files
|
56
57
|
test: /.css$/,
|
57
58
|
use: [
|
58
|
-
{ loader: "cache-loader" },
|
59
59
|
{ loader: "style-loader" },
|
60
60
|
{ loader: "css-loader" }
|
61
61
|
]
|
62
62
|
},
|
63
63
|
{
|
64
64
|
test: /.(png|svg|jpg|gif|woff|woff2|eot|ttf|otf)$/,
|
65
|
-
use: [ "
|
65
|
+
use: [ "file-loader" ]
|
66
66
|
},
|
67
67
|
{
|
68
68
|
// opal-webpack-loader will compile and include ruby files in the pack
|
69
69
|
test: /(\.js)?\.rb$/,
|
70
70
|
use: [
|
71
|
-
{ loader: "cache-loader" },
|
72
71
|
{
|
73
72
|
loader: 'opal-webpack-loader',
|
74
73
|
options: {
|
@@ -9,20 +9,18 @@
|
|
9
9
|
"production_build": "<%= production_script %>"
|
10
10
|
},
|
11
11
|
"devDependencies": {
|
12
|
-
"cache-loader": "^4.1.0",
|
13
|
-
"chokidar": "^3.0.2",
|
14
12
|
"compression-webpack-plugin": "^3.0.0",
|
15
13
|
"css-loader": "^3.2.0",
|
16
14
|
"extra-watch-webpack-plugin": "^1.0.3",
|
17
|
-
"file-loader": "^
|
18
|
-
"node-sass": "^4.
|
15
|
+
"file-loader": "^5.0.2",
|
16
|
+
"node-sass": "^4.13.0",
|
19
17
|
"parallel-webpack": "^2.4.0",
|
20
|
-
"sass-loader": "^
|
18
|
+
"sass-loader": "^8.0.0",
|
21
19
|
"style-loader": "^1.0.0",
|
22
|
-
"terser-webpack-plugin": "^
|
23
|
-
"webpack": "^4.
|
20
|
+
"terser-webpack-plugin": "^2.2.1",
|
21
|
+
"webpack": "^4.41.2",
|
24
22
|
"webpack-assets-manifest": "^3.1.1",
|
25
|
-
"webpack-cli": "^3.3.
|
26
|
-
"webpack-dev-server": "^3.
|
23
|
+
"webpack-cli": "^3.3.10",
|
24
|
+
"webpack-dev-server": "^3.9.0"
|
27
25
|
}
|
28
26
|
}
|
@@ -34,7 +34,6 @@ const common_config = {
|
|
34
34
|
{
|
35
35
|
test: /.scss$/,
|
36
36
|
use: [
|
37
|
-
{ loader: "cache-loader" },
|
38
37
|
{ loader: "style-loader" },
|
39
38
|
{
|
40
39
|
loader: "css-loader",
|
@@ -46,7 +45,7 @@ const common_config = {
|
|
46
45
|
{
|
47
46
|
loader: "sass-loader",
|
48
47
|
options: {
|
49
|
-
includePath: [path.resolve(__dirname, '<%= stylesheets_directory %>')],
|
48
|
+
sassOptions: { includePath: [path.resolve(__dirname, '<%= stylesheets_directory %>')] },
|
50
49
|
sourceMap: false // set to false to speed up hot reloads
|
51
50
|
}
|
52
51
|
}
|
@@ -55,17 +54,16 @@ const common_config = {
|
|
55
54
|
{
|
56
55
|
// loader for .css files
|
57
56
|
test: /.css$/,
|
58
|
-
use: [ "
|
57
|
+
use: [ "style-loader", "css-loader" ]
|
59
58
|
},
|
60
59
|
{
|
61
60
|
test: /.(png|svg|jpg|gif|woff|woff2|eot|ttf|otf)$/,
|
62
|
-
use: [ "
|
61
|
+
use: [ "file-loader" ]
|
63
62
|
},
|
64
63
|
{
|
65
64
|
// opal-webpack-loader will compile and include ruby files in the pack
|
66
65
|
test: /(\.js)?\.rb$/,
|
67
66
|
use: [
|
68
|
-
{ loader: "cache-loader" },
|
69
67
|
{
|
70
68
|
loader: 'opal-webpack-loader',
|
71
69
|
options: {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opal-webpack-loader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Biedermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|