webpacker 5.1.0 → 5.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.eslintrc.js +8 -8
- data/.github/workflows/jest.yml +38 -0
- data/.github/workflows/js-lint.yml +39 -0
- data/.github/workflows/rubocop.yml +39 -0
- data/.github/workflows/ruby.yml +66 -0
- data/.node-version +1 -1
- data/.rubocop.yml +113 -13
- data/CHANGELOG.md +27 -2
- data/Gemfile.lock +112 -103
- data/README.md +11 -19
- data/docs/css.md +58 -3
- data/docs/integrations.md +1 -1
- data/docs/target.md +22 -0
- data/docs/testing.md +1 -1
- data/docs/troubleshooting.md +3 -1
- data/docs/typescript.md +89 -8
- data/docs/webpack-dev-server.md +1 -1
- data/lib/install/config/babel.config.js +1 -3
- data/lib/install/config/webpacker.yml +1 -1
- data/lib/install/template.rb +9 -1
- data/lib/install/typescript.rb +2 -5
- data/lib/tasks/webpacker/check_node.rake +1 -1
- data/lib/tasks/webpacker/check_yarn.rake +2 -3
- data/lib/tasks/webpacker/yarn_install.rake +7 -1
- data/lib/webpacker/commands.rb +1 -1
- data/lib/webpacker/compiler.rb +7 -2
- data/lib/webpacker/configuration.rb +12 -4
- data/lib/webpacker/dev_server_runner.rb +2 -2
- data/lib/webpacker/helper.rb +29 -10
- data/lib/webpacker/runner.rb +1 -0
- data/lib/webpacker/version.rb +1 -1
- data/lib/webpacker/webpack_runner.rb +2 -2
- data/package.json +35 -35
- data/package/__tests__/config.js +12 -1
- data/package/__tests__/development.js +14 -1
- data/package/config.js +4 -1
- data/package/configPath.js +3 -0
- data/package/env.js +1 -2
- data/package/environments/__tests__/base.js +25 -8
- data/package/environments/base.js +5 -6
- data/package/environments/development.js +39 -33
- data/package/environments/production.js +1 -3
- data/package/rules/babel.js +11 -4
- data/package/rules/file.js +3 -2
- data/package/rules/node_modules.js +1 -3
- data/package/rules/sass.js +4 -1
- data/package/utils/helpers.js +1 -1
- data/test/compiler_test.rb +8 -3
- data/test/configuration_test.rb +8 -7
- data/test/dev_server_runner_test.rb +1 -1
- data/test/helper_test.rb +3 -0
- data/test/test_app/config/webpacker.yml +7 -1
- data/test/test_app/public/packs/manifest.json +1 -0
- data/test/webpack_runner_test.rb +1 -1
- data/webpacker.gemspec +1 -1
- data/yarn.lock +3290 -3588
- metadata +19 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d400dc003c9e7467963ea8556f019a980f8fe93256cd796e720da01bba242c7d
|
4
|
+
data.tar.gz: 26c4837e5359a82fd82929e24ea5366c7fe32a341394fc03333e25db21ba845b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4af27103d5c0da92740a9ca8925808a0efd101e67b24ba1181eb6c39dd8f316c29324561f84c7961eda057632b271d13a804419b2557f9e29750cf38a117a29
|
7
|
+
data.tar.gz: 1bce4a57afbd0edef757ff224c40734b7e839113583449d3741c615b47384331bcc4e7d9c6c88569a41cc4dc342b91dfb1345c44db345089992e76e2c57a1897
|
data/.eslintrc.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
module.exports = {
|
2
|
-
|
3
|
-
|
2
|
+
extends: 'airbnb',
|
3
|
+
rules: {
|
4
4
|
'comma-dangle': ['error', 'never'],
|
5
5
|
'import/no-unresolved': 'off',
|
6
6
|
'import/no-extraneous-dependencies': 'off',
|
7
7
|
'import/extensions': 'off',
|
8
|
-
semi: ['error', 'never']
|
8
|
+
semi: ['error', 'never']
|
9
9
|
},
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
}
|
14
|
-
}
|
10
|
+
env: {
|
11
|
+
browser: true,
|
12
|
+
node: true
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
name: Jest specs
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
name: Jest specs
|
8
|
+
strategy:
|
9
|
+
matrix:
|
10
|
+
os: [ubuntu-latest]
|
11
|
+
node: [10.x, 12.x, 14.x]
|
12
|
+
|
13
|
+
runs-on: ${{ matrix.os }}
|
14
|
+
|
15
|
+
steps:
|
16
|
+
- uses: actions/checkout@v2
|
17
|
+
- name: Get yarn cache directory path
|
18
|
+
id: yarn-cache-dir-path
|
19
|
+
run: echo "::set-output name=dir::$(yarn cache dir)"
|
20
|
+
|
21
|
+
- uses: actions/cache@v2
|
22
|
+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
23
|
+
with:
|
24
|
+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
25
|
+
key: ${{ runner.os }}-${{ matrix.node }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
26
|
+
restore-keys: |
|
27
|
+
${{ runner.os }}-${{ matrix.node }}-yarn-
|
28
|
+
|
29
|
+
- name: Use Node.js ${{ matrix.node }}
|
30
|
+
uses: actions/setup-node@v1
|
31
|
+
with:
|
32
|
+
node-version: ${{ matrix.node }}
|
33
|
+
|
34
|
+
- name: Install dependencies
|
35
|
+
run: yarn --frozen-lockfile
|
36
|
+
|
37
|
+
- name: Jest Specs
|
38
|
+
run: yarn test
|
@@ -0,0 +1,39 @@
|
|
1
|
+
name: JS lint
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
name: JS Lint
|
8
|
+
|
9
|
+
strategy:
|
10
|
+
matrix:
|
11
|
+
os: [ubuntu-latest]
|
12
|
+
node: [12.x]
|
13
|
+
|
14
|
+
runs-on: ${{ matrix.os }}
|
15
|
+
|
16
|
+
steps:
|
17
|
+
- uses: actions/checkout@v2
|
18
|
+
- name: Get yarn cache directory path
|
19
|
+
id: yarn-cache-dir-path
|
20
|
+
run: echo "::set-output name=dir::$(yarn cache dir)"
|
21
|
+
|
22
|
+
- uses: actions/cache@v2
|
23
|
+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
24
|
+
with:
|
25
|
+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
26
|
+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
27
|
+
restore-keys: |
|
28
|
+
${{ runner.os }}-yarn-
|
29
|
+
|
30
|
+
- name: Use Node.js ${{ matrix.node }}
|
31
|
+
uses: actions/setup-node@v1
|
32
|
+
with:
|
33
|
+
node-version: ${{ matrix.node }}
|
34
|
+
|
35
|
+
- name: Install dependencies
|
36
|
+
run: yarn --frozen-lockfile
|
37
|
+
|
38
|
+
- name: Lint
|
39
|
+
run: yarn lint
|
@@ -0,0 +1,39 @@
|
|
1
|
+
name: Rubocop
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
name: Rubocop
|
8
|
+
runs-on: ${{ matrix.os }}
|
9
|
+
env:
|
10
|
+
BUNDLE_JOBS: 4
|
11
|
+
BUNDLE_RETRY: 3
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
os: [ubuntu-latest]
|
15
|
+
ruby: [
|
16
|
+
2.7
|
17
|
+
]
|
18
|
+
|
19
|
+
steps:
|
20
|
+
- uses: actions/checkout@v2
|
21
|
+
- uses: actions/cache@v2
|
22
|
+
with:
|
23
|
+
path: /home/runner/bundle
|
24
|
+
key: bundle-use-ruby-gems-${{ hashFiles('**/Gemfile.lock') }}
|
25
|
+
restore-keys: |
|
26
|
+
bundle-use-ruby-gems-
|
27
|
+
|
28
|
+
- uses: ruby/setup-ruby@v1
|
29
|
+
with:
|
30
|
+
ruby-version: ${{ matrix.ruby }}
|
31
|
+
|
32
|
+
- name: Bundle install
|
33
|
+
run: |
|
34
|
+
gem install bundler -v 2.1.4
|
35
|
+
bundle config path /home/runner/bundle
|
36
|
+
bundle install
|
37
|
+
|
38
|
+
- name: Ruby linter
|
39
|
+
run: bundle exec rubocop
|
@@ -0,0 +1,66 @@
|
|
1
|
+
name: Ruby specs
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
name: Ruby specs
|
8
|
+
runs-on: ${{ matrix.os }}
|
9
|
+
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' || matrix.experimental }}
|
10
|
+
env:
|
11
|
+
BUNDLE_JOBS: 4
|
12
|
+
BUNDLE_RETRY: 3
|
13
|
+
strategy:
|
14
|
+
fail-fast: false
|
15
|
+
matrix:
|
16
|
+
os: [ubuntu-latest]
|
17
|
+
ruby: [
|
18
|
+
2.4,
|
19
|
+
2.5,
|
20
|
+
2.6,
|
21
|
+
2.7
|
22
|
+
]
|
23
|
+
gemfile: [
|
24
|
+
"gemfiles/Gemfile-rails.5.2.x",
|
25
|
+
"gemfiles/Gemfile-rails.6.0.x"
|
26
|
+
]
|
27
|
+
exclude:
|
28
|
+
- ruby: "2.4"
|
29
|
+
gemfile: gemfiles/Gemfile-rails.6.0.x
|
30
|
+
experimental: [false]
|
31
|
+
include:
|
32
|
+
- ruby: 2.5
|
33
|
+
os: ubuntu-latest
|
34
|
+
gemfile: gemfiles/Gemfile-rails-edge
|
35
|
+
experimental: true
|
36
|
+
- ruby: 2.6
|
37
|
+
os: ubuntu-latest
|
38
|
+
gemfile: gemfiles/Gemfile-rails-edge
|
39
|
+
experimental: true
|
40
|
+
- ruby: 2.7
|
41
|
+
os: ubuntu-latest
|
42
|
+
gemfile: gemfiles/Gemfile-rails-edge
|
43
|
+
experimental: true
|
44
|
+
|
45
|
+
steps:
|
46
|
+
- uses: actions/checkout@v2
|
47
|
+
- uses: actions/cache@v2
|
48
|
+
with:
|
49
|
+
path: /home/runner/bundle
|
50
|
+
key: bundle-use-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-gems-${{ hashFiles(matrix.gemfile) }}-${{ hashFiles('**/*.gemspec') }}
|
51
|
+
restore-keys: |
|
52
|
+
bundle-use-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-gems-
|
53
|
+
|
54
|
+
- uses: ruby/setup-ruby@v1
|
55
|
+
with:
|
56
|
+
ruby-version: ${{ matrix.ruby }}
|
57
|
+
|
58
|
+
- name: Bundle install
|
59
|
+
run: |
|
60
|
+
gem install bundler -v 2.1.4
|
61
|
+
bundle config path /home/runner/bundle
|
62
|
+
bundle config --global gemfile ${{ matrix.gemfile }}
|
63
|
+
bundle install --jobs 4 --retry 3
|
64
|
+
|
65
|
+
- name: Ruby specs
|
66
|
+
run: bundle exec rake test
|
data/.node-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
10.
|
1
|
+
10.17.0
|
data/.rubocop.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require: rubocop-performance
|
2
2
|
AllCops:
|
3
|
-
TargetRubyVersion: 2.
|
3
|
+
TargetRubyVersion: 2.4
|
4
4
|
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
|
5
5
|
# to ignore them, so only the ones explicitly set in this file are enabled.
|
6
6
|
DisabledByDefault: true
|
@@ -13,11 +13,6 @@ AllCops:
|
|
13
13
|
Style/AndOr:
|
14
14
|
Enabled: true
|
15
15
|
|
16
|
-
# Do not use braces for hash literals when they are the last argument of a
|
17
|
-
# method call.
|
18
|
-
Style/BracesAroundHashParameters:
|
19
|
-
Enabled: true
|
20
|
-
|
21
16
|
# Align `when` with `case`.
|
22
17
|
Layout/CaseIndentation:
|
23
18
|
Enabled: true
|
@@ -50,7 +45,11 @@ Style/HashSyntax:
|
|
50
45
|
# extra level of indentation.
|
51
46
|
Layout/IndentationConsistency:
|
52
47
|
Enabled: true
|
53
|
-
EnforcedStyle:
|
48
|
+
EnforcedStyle: indented_internal_methods
|
49
|
+
|
50
|
+
# Detect hard tabs, no hard tabs.
|
51
|
+
Layout/IndentationStyle:
|
52
|
+
Enabled: true
|
54
53
|
|
55
54
|
# Two spaces, no tabs (for indentation).
|
56
55
|
Layout/IndentationWidth:
|
@@ -98,12 +97,8 @@ Style/StringLiterals:
|
|
98
97
|
Enabled: true
|
99
98
|
EnforcedStyle: double_quotes
|
100
99
|
|
101
|
-
# Detect hard tabs, no hard tabs.
|
102
|
-
Layout/Tab:
|
103
|
-
Enabled: true
|
104
|
-
|
105
100
|
# Blank lines should not have any spaces.
|
106
|
-
Layout/
|
101
|
+
Layout/TrailingEmptyLines:
|
107
102
|
Enabled: true
|
108
103
|
|
109
104
|
# No trailing whitespace.
|
@@ -111,7 +106,7 @@ Layout/TrailingWhitespace:
|
|
111
106
|
Enabled: true
|
112
107
|
|
113
108
|
# Use quotes for string literals when they are enough.
|
114
|
-
Style/
|
109
|
+
Style/RedundantPercentQ:
|
115
110
|
Enabled: true
|
116
111
|
|
117
112
|
# Align `end` with the matching keyword or starting expression except for
|
@@ -123,3 +118,108 @@ Layout/EndAlignment:
|
|
123
118
|
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
|
124
119
|
Lint/RequireParentheses:
|
125
120
|
Enabled: true
|
121
|
+
|
122
|
+
# Use `bind_call(obj, args, ...)` instead of `bind(obj).call(args, ...)`.
|
123
|
+
Performance/BindCall:
|
124
|
+
Enabled: true
|
125
|
+
|
126
|
+
# Use `caller(n..n)` instead of `caller`.
|
127
|
+
Performance/Caller:
|
128
|
+
Enabled: true
|
129
|
+
|
130
|
+
# Use `casecmp` for case comparison.
|
131
|
+
Performance/Casecmp:
|
132
|
+
Enabled: true
|
133
|
+
|
134
|
+
# Extract Array and Hash literals outside of loops into local variables or constants.
|
135
|
+
Performance/CollectionLiteralInLoop:
|
136
|
+
Enabled: true
|
137
|
+
|
138
|
+
# Prefer `sort_by(&:foo)` instead of `sort { |a, b| a.foo <=> b.foo }`.
|
139
|
+
Performance/CompareWithBlock:
|
140
|
+
Enabled: true
|
141
|
+
|
142
|
+
# Use `count` instead of `{select,find_all,filter,reject}...{size,count,length}`.
|
143
|
+
Performance/Count:
|
144
|
+
Enabled: true
|
145
|
+
|
146
|
+
# Use `delete_prefix` instead of `gsub`.
|
147
|
+
Performance/DeletePrefix:
|
148
|
+
Enabled: true
|
149
|
+
|
150
|
+
# Use `delete_suffix` instead of `gsub`.
|
151
|
+
Performance/DeleteSuffix:
|
152
|
+
Enabled: true
|
153
|
+
|
154
|
+
# Use `detect` instead of `select.first`, `find_all.first`, `filter.first`, `select.last`, `find_all.last`, and `filter.last`.
|
155
|
+
Performance/Detect:
|
156
|
+
Enabled: true
|
157
|
+
|
158
|
+
# Use `str.{start,end}_with?(x, ..., y, ...)` instead of `str.{start,end}_with?(x, ...) || str.{start,end}_with?(y, ...)`.
|
159
|
+
Performance/DoubleStartEndWith:
|
160
|
+
Enabled: true
|
161
|
+
|
162
|
+
# Use `end_with?` instead of a regex match anchored to the end of a string.
|
163
|
+
Performance/EndWith:
|
164
|
+
Enabled: true
|
165
|
+
|
166
|
+
# Do not compute the size of statically sized objects except in constants.
|
167
|
+
Performance/FixedSize:
|
168
|
+
Enabled: true
|
169
|
+
|
170
|
+
# Use `Enumerable#flat_map` instead of `Enumerable#map...Array#flatten(1).
|
171
|
+
Performance/FlatMap:
|
172
|
+
Enabled: true
|
173
|
+
|
174
|
+
# Use `key?` or `value?` instead of `keys.include?` or `values.include?`.
|
175
|
+
Performance/InefficientHashSearch:
|
176
|
+
Enabled: true
|
177
|
+
|
178
|
+
# Use `Range#cover?` instead of `Range#include?` (or `Range#member?`).
|
179
|
+
Performance/RangeInclude:
|
180
|
+
Enabled: true
|
181
|
+
|
182
|
+
# Use `yield` instead of `block.call`.
|
183
|
+
Performance/RedundantBlockCall:
|
184
|
+
Enabled: true
|
185
|
+
|
186
|
+
# Use `=~` instead of `String#match` or `Regexp#match` in a context where the returned `MatchData` is not needed.
|
187
|
+
Performance/RedundantMatch:
|
188
|
+
Enabled: true
|
189
|
+
|
190
|
+
# Use Hash#[]=, rather than Hash#merge! with a single key-value pair.
|
191
|
+
Performance/RedundantMerge:
|
192
|
+
Enabled: true
|
193
|
+
|
194
|
+
# Use `match?` instead of `Regexp#match`, `String#match`, `Symbol#match`, `Regexp#===`, or `=~` when `MatchData` is not used.
|
195
|
+
Performance/RegexpMatch:
|
196
|
+
Enabled: true
|
197
|
+
|
198
|
+
# Use `reverse_each` instead of `reverse.each`.
|
199
|
+
Performance/ReverseEach:
|
200
|
+
Enabled: true
|
201
|
+
|
202
|
+
# Use `size` instead of `count` for counting the number of elements in `Array` and `Hash`.
|
203
|
+
Performance/Size:
|
204
|
+
Enabled: true
|
205
|
+
|
206
|
+
# Use `start_with?` instead of a regex match anchored to the beginning of a string.
|
207
|
+
Performance/StartWith:
|
208
|
+
Enabled: true
|
209
|
+
|
210
|
+
# Use `tr` instead of `gsub` when you are replacing the same number of characters.
|
211
|
+
# Use `delete` instead of `gsub` when you are deleting characters.
|
212
|
+
Performance/StringReplacement:
|
213
|
+
Enabled: true
|
214
|
+
|
215
|
+
# Checks for .times.map calls.
|
216
|
+
Performance/TimesMap:
|
217
|
+
Enabled: true
|
218
|
+
|
219
|
+
# Use unary plus to get an unfrozen string literal.
|
220
|
+
Performance/UnfreezeString:
|
221
|
+
Enabled: true
|
222
|
+
|
223
|
+
# Use `URI::DEFAULT_PARSER` instead of `URI::Parser.new`.
|
224
|
+
Performance/UriDefaultParser:
|
225
|
+
Enabled: true
|
data/CHANGELOG.md
CHANGED
@@ -2,10 +2,33 @@
|
|
2
2
|
|
3
3
|
**Please note that Webpacker 4.1.0 has an installer bug. Please use 4.2.0 or above**
|
4
4
|
|
5
|
+
## [[5.3.0]](https://github.com/rails/webpacker/compare/v5.3.0...5.2.1) - 2021-TBD
|
6
|
+
|
7
|
+
- Adds experimental Yarn 2 support. Note you must manually set `nodeLinker: node-modules` in your `.yarnrc.yml`.
|
8
|
+
|
9
|
+
- Keep backups, even when they're old [#2912](https://github.com/rails/webpacker/pull/2912)
|
10
|
+
|
11
|
+
## [[5.2.2]](https://github.com/rails/webpacker/compare/v5.2.1...5.2.2) - 2021-04-27
|
12
|
+
|
13
|
+
- Bump deps and remove node-sass [#2997](https://github.com/rails/webpacker/pull/2997).
|
14
|
+
|
15
|
+
## [[5.2.1]](https://github.com/rails/webpacker/compare/v5.2.0...5.2.1) - 2020-08-17
|
16
|
+
|
17
|
+
- Revert [#1311](https://github.com/rails/webpacker/pull/1311).
|
18
|
+
|
19
|
+
## [[5.2.0]](https://github.com/rails/webpacker/compare/v5.1.1...5.2.0) - 2020-08-16
|
20
|
+
|
21
|
+
- Bump dependencies and fixes. See [diff](https://github.com/rails/webpacker/compare/v5.1.1...5-x-stable) for changes.
|
22
|
+
|
23
|
+
## [[5.1.1]](https://github.com/rails/webpacker/compare/v5.1.0...v5.1.1) - 2020-04-20
|
24
|
+
|
25
|
+
- Update [TypeScript documentation](https://github.com/rails/webpacker/blob/master/docs/typescript.md) and installer to use babel-loader for typescript.[(#2541](https://github.com/rails/webpacker/pull/2541)
|
26
|
+
|
5
27
|
## [[5.1.0]](https://github.com/rails/webpacker/compare/v5.0.1...v5.1.0) - 2020-04-19
|
6
28
|
|
7
29
|
- Remove yarn integrity check [#2518](https://github.com/rails/webpacker/pull/2518)
|
8
30
|
- Switch from ts-loader to babel-loader [#2449](https://github.com/rails/webpacker/pull/2449)
|
31
|
+
Please see the [TypeScript documentation](https://github.com/rails/webpacker/blob/master/docs/typescript.md) to upgrade existing projects to use typescript with 5.1
|
9
32
|
- Resolve multi-word snakecase WEBPACKER_DEV_SERVER env values [#2528](https://github.com/rails/webpacker/pull/2528)
|
10
33
|
|
11
34
|
## [[5.0.1]](https://github.com/rails/webpacker/compare/v5.0.0...v5.0.1) - 2020-03-22
|
@@ -320,7 +343,7 @@ const { environment } = require('@rails/webpacker')
|
|
320
343
|
// Enable with default config
|
321
344
|
environment.splitChunks()
|
322
345
|
// Configure via a callback
|
323
|
-
environment.splitChunks(config =>
|
346
|
+
environment.splitChunks((config) =>
|
324
347
|
Object.assign({}, config, { optimization: { splitChunks: false } })
|
325
348
|
)
|
326
349
|
```
|
@@ -644,7 +667,9 @@ environment.resolvedModules.append('vendor', 'vendor')
|
|
644
667
|
```js
|
645
668
|
// Enable css modules with sass loader
|
646
669
|
const sassLoader = environment.loaders.get('sass')
|
647
|
-
const cssLoader = sassLoader.use.find(
|
670
|
+
const cssLoader = sassLoader.use.find(
|
671
|
+
(loader) => loader.loader === 'css-loader'
|
672
|
+
)
|
648
673
|
|
649
674
|
cssLoader.options = Object.assign({}, cssLoader.options, {
|
650
675
|
modules: true,
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
webpacker (5.
|
4
|
+
webpacker (5.3.0)
|
5
5
|
activesupport (>= 5.2)
|
6
6
|
rack-proxy (>= 0.6.1)
|
7
7
|
railties (>= 5.2)
|
@@ -10,150 +10,159 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
actioncable (6.
|
14
|
-
actionpack (= 6.
|
13
|
+
actioncable (6.1.3.1)
|
14
|
+
actionpack (= 6.1.3.1)
|
15
|
+
activesupport (= 6.1.3.1)
|
15
16
|
nio4r (~> 2.0)
|
16
17
|
websocket-driver (>= 0.6.1)
|
17
|
-
actionmailbox (6.
|
18
|
-
actionpack (= 6.
|
19
|
-
activejob (= 6.
|
20
|
-
activerecord (= 6.
|
21
|
-
activestorage (= 6.
|
22
|
-
activesupport (= 6.
|
18
|
+
actionmailbox (6.1.3.1)
|
19
|
+
actionpack (= 6.1.3.1)
|
20
|
+
activejob (= 6.1.3.1)
|
21
|
+
activerecord (= 6.1.3.1)
|
22
|
+
activestorage (= 6.1.3.1)
|
23
|
+
activesupport (= 6.1.3.1)
|
23
24
|
mail (>= 2.7.1)
|
24
|
-
actionmailer (6.
|
25
|
-
actionpack (= 6.
|
26
|
-
actionview (= 6.
|
27
|
-
activejob (= 6.
|
25
|
+
actionmailer (6.1.3.1)
|
26
|
+
actionpack (= 6.1.3.1)
|
27
|
+
actionview (= 6.1.3.1)
|
28
|
+
activejob (= 6.1.3.1)
|
29
|
+
activesupport (= 6.1.3.1)
|
28
30
|
mail (~> 2.5, >= 2.5.4)
|
29
31
|
rails-dom-testing (~> 2.0)
|
30
|
-
actionpack (6.
|
31
|
-
actionview (= 6.
|
32
|
-
activesupport (= 6.
|
33
|
-
rack (~> 2.0)
|
32
|
+
actionpack (6.1.3.1)
|
33
|
+
actionview (= 6.1.3.1)
|
34
|
+
activesupport (= 6.1.3.1)
|
35
|
+
rack (~> 2.0, >= 2.0.9)
|
34
36
|
rack-test (>= 0.6.3)
|
35
37
|
rails-dom-testing (~> 2.0)
|
36
38
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
37
|
-
actiontext (6.
|
38
|
-
actionpack (= 6.
|
39
|
-
activerecord (= 6.
|
40
|
-
activestorage (= 6.
|
41
|
-
activesupport (= 6.
|
39
|
+
actiontext (6.1.3.1)
|
40
|
+
actionpack (= 6.1.3.1)
|
41
|
+
activerecord (= 6.1.3.1)
|
42
|
+
activestorage (= 6.1.3.1)
|
43
|
+
activesupport (= 6.1.3.1)
|
42
44
|
nokogiri (>= 1.8.5)
|
43
|
-
actionview (6.
|
44
|
-
activesupport (= 6.
|
45
|
+
actionview (6.1.3.1)
|
46
|
+
activesupport (= 6.1.3.1)
|
45
47
|
builder (~> 3.1)
|
46
48
|
erubi (~> 1.4)
|
47
49
|
rails-dom-testing (~> 2.0)
|
48
50
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
49
|
-
activejob (6.
|
50
|
-
activesupport (= 6.
|
51
|
+
activejob (6.1.3.1)
|
52
|
+
activesupport (= 6.1.3.1)
|
51
53
|
globalid (>= 0.3.6)
|
52
|
-
activemodel (6.
|
53
|
-
activesupport (= 6.
|
54
|
-
activerecord (6.
|
55
|
-
activemodel (= 6.
|
56
|
-
activesupport (= 6.
|
57
|
-
activestorage (6.
|
58
|
-
actionpack (= 6.
|
59
|
-
activejob (= 6.
|
60
|
-
activerecord (= 6.
|
61
|
-
|
62
|
-
|
54
|
+
activemodel (6.1.3.1)
|
55
|
+
activesupport (= 6.1.3.1)
|
56
|
+
activerecord (6.1.3.1)
|
57
|
+
activemodel (= 6.1.3.1)
|
58
|
+
activesupport (= 6.1.3.1)
|
59
|
+
activestorage (6.1.3.1)
|
60
|
+
actionpack (= 6.1.3.1)
|
61
|
+
activejob (= 6.1.3.1)
|
62
|
+
activerecord (= 6.1.3.1)
|
63
|
+
activesupport (= 6.1.3.1)
|
64
|
+
marcel (~> 1.0.0)
|
65
|
+
mini_mime (~> 1.0.2)
|
66
|
+
activesupport (6.1.3.1)
|
63
67
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
64
|
-
i18n (>=
|
65
|
-
minitest (
|
66
|
-
tzinfo (~>
|
67
|
-
zeitwerk (~> 2.
|
68
|
-
ast (2.4.
|
69
|
-
builder (3.2.
|
70
|
-
byebug (11.
|
71
|
-
concurrent-ruby (1.1.
|
72
|
-
crass (1.0.
|
73
|
-
erubi (1.
|
68
|
+
i18n (>= 1.6, < 2)
|
69
|
+
minitest (>= 5.1)
|
70
|
+
tzinfo (~> 2.0)
|
71
|
+
zeitwerk (~> 2.3)
|
72
|
+
ast (2.4.2)
|
73
|
+
builder (3.2.4)
|
74
|
+
byebug (11.1.3)
|
75
|
+
concurrent-ruby (1.1.8)
|
76
|
+
crass (1.0.6)
|
77
|
+
erubi (1.10.0)
|
74
78
|
globalid (0.4.2)
|
75
79
|
activesupport (>= 4.2.0)
|
76
|
-
i18n (1.
|
80
|
+
i18n (1.8.10)
|
77
81
|
concurrent-ruby (~> 1.0)
|
78
|
-
|
79
|
-
loofah (2.3.1)
|
82
|
+
loofah (2.9.1)
|
80
83
|
crass (~> 1.0.2)
|
81
84
|
nokogiri (>= 1.5.9)
|
82
85
|
mail (2.7.1)
|
83
86
|
mini_mime (>= 0.1.1)
|
84
|
-
marcel (0.
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
rack (2.
|
87
|
+
marcel (1.0.1)
|
88
|
+
method_source (1.0.0)
|
89
|
+
mini_mime (1.0.3)
|
90
|
+
mini_portile2 (2.5.0)
|
91
|
+
minitest (5.14.4)
|
92
|
+
nio4r (2.5.7)
|
93
|
+
nokogiri (1.11.3)
|
94
|
+
mini_portile2 (~> 2.5.0)
|
95
|
+
racc (~> 1.4)
|
96
|
+
parallel (1.20.1)
|
97
|
+
parser (3.0.1.0)
|
98
|
+
ast (~> 2.4.1)
|
99
|
+
racc (1.5.2)
|
100
|
+
rack (2.2.3)
|
98
101
|
rack-proxy (0.6.5)
|
99
102
|
rack
|
100
103
|
rack-test (1.1.0)
|
101
104
|
rack (>= 1.0, < 3)
|
102
|
-
rails (6.
|
103
|
-
actioncable (= 6.
|
104
|
-
actionmailbox (= 6.
|
105
|
-
actionmailer (= 6.
|
106
|
-
actionpack (= 6.
|
107
|
-
actiontext (= 6.
|
108
|
-
actionview (= 6.
|
109
|
-
activejob (= 6.
|
110
|
-
activemodel (= 6.
|
111
|
-
activerecord (= 6.
|
112
|
-
activestorage (= 6.
|
113
|
-
activesupport (= 6.
|
114
|
-
bundler (>= 1.
|
115
|
-
railties (= 6.
|
105
|
+
rails (6.1.3.1)
|
106
|
+
actioncable (= 6.1.3.1)
|
107
|
+
actionmailbox (= 6.1.3.1)
|
108
|
+
actionmailer (= 6.1.3.1)
|
109
|
+
actionpack (= 6.1.3.1)
|
110
|
+
actiontext (= 6.1.3.1)
|
111
|
+
actionview (= 6.1.3.1)
|
112
|
+
activejob (= 6.1.3.1)
|
113
|
+
activemodel (= 6.1.3.1)
|
114
|
+
activerecord (= 6.1.3.1)
|
115
|
+
activestorage (= 6.1.3.1)
|
116
|
+
activesupport (= 6.1.3.1)
|
117
|
+
bundler (>= 1.15.0)
|
118
|
+
railties (= 6.1.3.1)
|
116
119
|
sprockets-rails (>= 2.0.0)
|
117
120
|
rails-dom-testing (2.0.3)
|
118
121
|
activesupport (>= 4.2.0)
|
119
122
|
nokogiri (>= 1.6)
|
120
123
|
rails-html-sanitizer (1.3.0)
|
121
124
|
loofah (~> 2.3)
|
122
|
-
railties (6.
|
123
|
-
actionpack (= 6.
|
124
|
-
activesupport (= 6.
|
125
|
+
railties (6.1.3.1)
|
126
|
+
actionpack (= 6.1.3.1)
|
127
|
+
activesupport (= 6.1.3.1)
|
125
128
|
method_source
|
126
129
|
rake (>= 0.8.7)
|
127
|
-
thor (
|
130
|
+
thor (~> 1.0)
|
128
131
|
rainbow (3.0.0)
|
129
|
-
rake (13.0.
|
130
|
-
|
131
|
-
|
132
|
+
rake (13.0.3)
|
133
|
+
regexp_parser (2.1.1)
|
134
|
+
rexml (3.2.5)
|
135
|
+
rubocop (0.93.1)
|
132
136
|
parallel (~> 1.10)
|
133
|
-
parser (>= 2.
|
137
|
+
parser (>= 2.7.1.5)
|
134
138
|
rainbow (>= 2.2.2, < 4.0)
|
139
|
+
regexp_parser (>= 1.8)
|
140
|
+
rexml
|
141
|
+
rubocop-ast (>= 0.6.0)
|
135
142
|
ruby-progressbar (~> 1.7)
|
136
|
-
unicode-display_width (>= 1.4.0, <
|
137
|
-
rubocop-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
143
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
144
|
+
rubocop-ast (1.4.1)
|
145
|
+
parser (>= 2.7.1.5)
|
146
|
+
rubocop-performance (1.10.2)
|
147
|
+
rubocop (>= 0.90.0, < 2.0)
|
148
|
+
rubocop-ast (>= 0.4.0)
|
149
|
+
ruby-progressbar (1.11.0)
|
150
|
+
semantic_range (3.0.0)
|
151
|
+
sprockets (4.0.2)
|
142
152
|
concurrent-ruby (~> 1.0)
|
143
153
|
rack (> 1, < 3)
|
144
|
-
sprockets-rails (3.2.
|
154
|
+
sprockets-rails (3.2.2)
|
145
155
|
actionpack (>= 4.0)
|
146
156
|
activesupport (>= 4.0)
|
147
157
|
sprockets (>= 3.0.0)
|
148
|
-
thor (
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
websocket-driver (0.7.1)
|
158
|
+
thor (1.1.0)
|
159
|
+
tzinfo (2.0.4)
|
160
|
+
concurrent-ruby (~> 1.0)
|
161
|
+
unicode-display_width (1.7.0)
|
162
|
+
websocket-driver (0.7.3)
|
154
163
|
websocket-extensions (>= 0.1.0)
|
155
|
-
websocket-extensions (0.1.
|
156
|
-
zeitwerk (2.2
|
164
|
+
websocket-extensions (0.1.5)
|
165
|
+
zeitwerk (2.4.2)
|
157
166
|
|
158
167
|
PLATFORMS
|
159
168
|
ruby
|
@@ -165,10 +174,10 @@ DEPENDENCIES
|
|
165
174
|
rack-proxy
|
166
175
|
rails
|
167
176
|
rake (>= 11.1)
|
168
|
-
rubocop (
|
177
|
+
rubocop (= 0.93.1)
|
169
178
|
rubocop-performance
|
170
179
|
semantic_range
|
171
180
|
webpacker!
|
172
181
|
|
173
182
|
BUNDLED WITH
|
174
|
-
|
183
|
+
2.2.3
|