webpacker 3.3.0 → 3.3.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/Gemfile.lock +6 -6
- data/README.md +1 -1
- data/docs/assets.md +1 -1
- data/docs/docker.md +1 -1
- data/docs/env.md +1 -1
- data/docs/misc.md +1 -1
- data/docs/troubleshooting.md +1 -1
- data/docs/typescript.md +1 -1
- data/lib/install/template.rb +1 -1
- data/lib/webpacker/version.rb +1 -1
- data/package.json +2 -2
- data/yarn.lock +3 -3
- 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: 8948ef5358c7aac19d89b4260b7dfee306f8a32e7c42b56d3006ad235449d0cf
|
4
|
+
data.tar.gz: 94bc168c4e24f6f80edfad97c37e50cbd591c4375b155572e1942448a65bf0af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0caa8e595e462e7039f3e8a41315408abc0bc8569e0604333bcbf61ad44c75fb3a1273b2e87d4fc0bba15fc423709aba705d5837c0dab06ff4a79a0931c8aee
|
7
|
+
data.tar.gz: 31f7ddf9709b74c32bec863a98bc855c245e8aeee204813d7acee196be3883117244dcd02b99125e969b23f687b7c3d28523d86de3997f5a8a2e6d647deb9bcf
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
**Please note that Webpacker 3.1.0 and 3.1.1 has some serious bugs so please consider using either 3.0.2 or 3.2.0**
|
2
2
|
|
3
|
+
## [3.3.1] - 2018-03-12
|
4
|
+
|
5
|
+
## Fixed
|
6
|
+
|
7
|
+
- Use webpack dev server 2.x until webpacker supports webpack 4.x [#1338](https://github.com/rails/webpacker/issues/1338)
|
8
|
+
|
3
9
|
## [3.3.0] - 2018-03-03
|
4
10
|
|
5
11
|
### Added
|
@@ -15,6 +21,17 @@
|
|
15
21
|
```
|
16
22
|
bundle exec rails webpacker:binstubs
|
17
23
|
```
|
24
|
+
- set function is now removed from plugins and loaders, please use `append` or `prepend`
|
25
|
+
|
26
|
+
```js
|
27
|
+
// config/webpack/environment.js
|
28
|
+
const { environment } = require('@rails/webpacker')
|
29
|
+
|
30
|
+
environment.loaders.append('json', {
|
31
|
+
test: /\.json$/,
|
32
|
+
use: 'json-loader'
|
33
|
+
})
|
34
|
+
```
|
18
35
|
|
19
36
|
### Fixed
|
20
37
|
- Limit ts-loader to 3.5.0 until webpack 4 support [#1308](https://github.com/rails/webpacker/pull/1308)
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
webpacker (3.3.
|
4
|
+
webpacker (3.3.1)
|
5
5
|
activesupport (>= 4.2)
|
6
6
|
rack-proxy (>= 0.6.1)
|
7
7
|
railties (>= 4.2)
|
@@ -52,7 +52,7 @@ GEM
|
|
52
52
|
byebug (10.0.0)
|
53
53
|
concurrent-ruby (1.0.5)
|
54
54
|
crass (1.0.3)
|
55
|
-
erubi (1.7.
|
55
|
+
erubi (1.7.1)
|
56
56
|
globalid (0.4.1)
|
57
57
|
activesupport (>= 4.2.0)
|
58
58
|
i18n (0.9.5)
|
@@ -70,11 +70,11 @@ GEM
|
|
70
70
|
nokogiri (1.8.2)
|
71
71
|
mini_portile2 (~> 2.3.0)
|
72
72
|
parallel (1.12.1)
|
73
|
-
parser (2.5.0.
|
73
|
+
parser (2.5.0.3)
|
74
74
|
ast (~> 2.4.0)
|
75
75
|
powerpack (0.1.1)
|
76
76
|
rack (2.0.4)
|
77
|
-
rack-proxy (0.6.
|
77
|
+
rack-proxy (0.6.4)
|
78
78
|
rack
|
79
79
|
rack-test (0.8.3)
|
80
80
|
rack (>= 1.0, < 3)
|
@@ -103,9 +103,9 @@ GEM
|
|
103
103
|
thor (>= 0.18.1, < 2.0)
|
104
104
|
rainbow (3.0.0)
|
105
105
|
rake (12.3.0)
|
106
|
-
rubocop (0.
|
106
|
+
rubocop (0.53.0)
|
107
107
|
parallel (~> 1.10)
|
108
|
-
parser (>= 2.
|
108
|
+
parser (>= 2.5)
|
109
109
|
powerpack (~> 0.1)
|
110
110
|
rainbow (>= 2.2.2, < 4.0)
|
111
111
|
ruby-progressbar (~> 1.7)
|
data/README.md
CHANGED
data/docs/assets.md
CHANGED
@@ -74,7 +74,7 @@ Specify the plugin in your `.babelrc` with the custom root or alias. Here's an e
|
|
74
74
|
And then within your javascript app code:
|
75
75
|
|
76
76
|
```js
|
77
|
-
// Note: we don't have do any ../../ jazz
|
77
|
+
// Note: we don't have to do any ../../ jazz
|
78
78
|
|
79
79
|
import FooImage from 'assets/images/foo-image.png'
|
80
80
|
import 'assets/stylesheets/bar'
|
data/docs/docker.md
CHANGED
@@ -29,7 +29,7 @@ RUN curl -sL https://deb.nodesource.com/setup_8.x | bash
|
|
29
29
|
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
30
30
|
|
31
31
|
RUN apt-get install -y nodejs
|
32
|
-
RUN apt-get update && apt-get install yarn
|
32
|
+
RUN apt-get update && apt-get install -y yarn
|
33
33
|
|
34
34
|
# Rest of the commands....
|
35
35
|
```
|
data/docs/env.md
CHANGED
@@ -49,7 +49,7 @@ dotenvFiles.forEach((dotenvFile) => {
|
|
49
49
|
dotenv.config({ path: dotenvFile, silent: true })
|
50
50
|
})
|
51
51
|
|
52
|
-
environment.plugins.
|
52
|
+
environment.plugins.prepend('Environment', new webpack.EnvironmentPlugin(JSON.parse(JSON.stringify(process.env))))
|
53
53
|
|
54
54
|
module.exports = environment
|
55
55
|
```
|
data/docs/misc.md
CHANGED
@@ -14,7 +14,7 @@ and add `ignore-loader` to `config/webpack/environment.js`
|
|
14
14
|
```js
|
15
15
|
// ignores vue~ swap files
|
16
16
|
const { environment } = require('@rails/webpacker')
|
17
|
-
environment.loaders.
|
17
|
+
environment.loaders.append('ignore', {
|
18
18
|
test: /.vue~$/,
|
19
19
|
loader: 'ignore-loader'
|
20
20
|
})
|
data/docs/troubleshooting.md
CHANGED
@@ -110,7 +110,7 @@ const webpack = require('webpack')
|
|
110
110
|
const { resolve } = require('path')
|
111
111
|
const { environment, config } = require('@rails/webpacker')
|
112
112
|
|
113
|
-
environment.plugins.
|
113
|
+
environment.plugins.append('ContextReplacement',
|
114
114
|
new webpack.ContextReplacementPlugin(
|
115
115
|
/angular(\\|\/)core(\\|\/)(@angular|esm5)/,
|
116
116
|
resolve(config.source_path)
|
data/docs/typescript.md
CHANGED
data/lib/install/template.rb
CHANGED
@@ -44,7 +44,7 @@ say "Installing all JavaScript dependencies"
|
|
44
44
|
run "yarn add @rails/webpacker"
|
45
45
|
|
46
46
|
say "Installing dev server for live reloading"
|
47
|
-
run "yarn add --dev webpack-dev-server"
|
47
|
+
run "yarn add --dev webpack-dev-server@2.11.2"
|
48
48
|
|
49
49
|
if Rails::VERSION::MAJOR == 5 && Rails::VERSION::MINOR > 1
|
50
50
|
say "You need to allow webpack-dev-server host as allowed origin for connect-src.", :yellow
|
data/lib/webpacker/version.rb
CHANGED
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rails/webpacker",
|
3
|
-
"version": "3.3.
|
3
|
+
"version": "3.3.1",
|
4
4
|
"description": "Use webpack to manage app-like JavaScript modules in Rails",
|
5
5
|
"main": "package/index.js",
|
6
6
|
"files": [
|
@@ -27,7 +27,7 @@
|
|
27
27
|
"glob": "^7.1.2",
|
28
28
|
"js-yaml": "^3.10.0",
|
29
29
|
"node-sass": "^4.7.2",
|
30
|
-
"path-complete-extname": "^
|
30
|
+
"path-complete-extname": "^1.0.0",
|
31
31
|
"postcss-cssnext": "^3.1.0",
|
32
32
|
"postcss-import": "^11.0.0",
|
33
33
|
"postcss-loader": "^2.1.0",
|
data/yarn.lock
CHANGED
@@ -4082,9 +4082,9 @@ path-browserify@0.0.0:
|
|
4082
4082
|
version "0.0.0"
|
4083
4083
|
resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.0.tgz#a0b870729aae214005b7d5032ec2cbbb0fb4451a"
|
4084
4084
|
|
4085
|
-
path-complete-extname@^
|
4086
|
-
version "
|
4087
|
-
resolved "https://registry.yarnpkg.com/path-complete-extname/-/path-complete-extname-
|
4085
|
+
path-complete-extname@^1.0.0:
|
4086
|
+
version "1.0.0"
|
4087
|
+
resolved "https://registry.yarnpkg.com/path-complete-extname/-/path-complete-extname-1.0.0.tgz#f889985dc91000c815515c0bfed06c5acda0752b"
|
4088
4088
|
|
4089
4089
|
path-exists@^2.0.0:
|
4090
4090
|
version "2.1.0"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webpacker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-03-
|
12
|
+
date: 2018-03-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|