webpacker 6.0.0.beta.1 → 6.0.0.beta.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/jest.yml +1 -1
- data/.github/workflows/js-lint.yml +1 -1
- data/.github/workflows/ruby.yml +9 -6
- data/6_0_upgrade.md +29 -10
- data/CHANGELOG.md +2 -0
- data/CONTRIBUTING.md +1 -1
- data/Gemfile.lock +7 -5
- data/README.md +134 -54
- data/config/README.md +3 -0
- data/config/webpacker.yml +1 -0
- data/docs/troubleshooting.md +160 -0
- data/lib/install/config/webpacker.yml +4 -2
- data/lib/install/{javascript/packs → packs/entrypoints}/application.js +1 -1
- data/lib/install/template.rb +3 -3
- data/lib/webpacker/commands.rb +2 -1
- data/lib/webpacker/compiler.rb +2 -2
- data/lib/webpacker/dev_server_runner.rb +2 -0
- data/lib/webpacker/helper.rb +13 -43
- data/lib/webpacker/manifest.rb +1 -1
- data/lib/webpacker/version.rb +1 -1
- data/lib/webpacker/webpack_runner.rb +1 -0
- data/package.json +1 -1
- data/package/__tests__/development.js +2 -1
- data/package/__tests__/index.js +9 -0
- data/package/environments/__tests__/base.js +6 -6
- data/package/environments/base.js +7 -4
- data/package/environments/development.js +1 -0
- data/package/environments/production.js +29 -22
- data/package/index.js +3 -3
- data/package/rules/babel.js +1 -1
- data/package/rules/file.js +6 -2
- data/package/rules/index.js +2 -2
- data/package/rules/stylus.js +26 -0
- data/package/utils/helpers.js +4 -2
- data/test/configuration_test.rb +2 -2
- data/test/dev_server_runner_test.rb +10 -2
- data/test/helper_test.rb +33 -39
- data/test/manifest_test.rb +8 -0
- data/test/mounted_app/test/dummy/config/webpacker.yml +2 -2
- data/test/test_app/app/{javascript/packs → packs/entrypoints}/application.js +1 -1
- data/test/test_app/app/{javascript/packs → packs/entrypoints}/multi_entry.css +0 -0
- data/test/test_app/app/{javascript/packs → packs/entrypoints}/multi_entry.js +0 -0
- data/test/test_app/config/webpacker.yml +2 -2
- data/test/test_app/public/packs/manifest.json +7 -0
- metadata +16 -13
- data/lib/install/javascript/packs/application.css +0 -9
- data/package/rules/svg.js +0 -20
@@ -67,8 +67,12 @@ const getPlugins = () => {
|
|
67
67
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
68
68
|
plugins.push(
|
69
69
|
new MiniCssExtractPlugin({
|
70
|
-
filename: isDevelopment
|
71
|
-
|
70
|
+
filename: isDevelopment
|
71
|
+
? 'css/[name].css'
|
72
|
+
: 'css/[name]-[contenthash:8].css',
|
73
|
+
chunkFilename: isDevelopment
|
74
|
+
? 'css/[id].css'
|
75
|
+
: 'css/[id]-[contenthash:8].css'
|
72
76
|
})
|
73
77
|
)
|
74
78
|
}
|
@@ -82,13 +86,12 @@ module.exports = {
|
|
82
86
|
filename: 'js/[name]-[contenthash].js',
|
83
87
|
chunkFilename: 'js/[name]-[contenthash].chunk.js',
|
84
88
|
hotUpdateChunkFilename: 'js/[id]-[hash].hot-update.js',
|
85
|
-
assetModuleFilename: 'static/[hash][ext][query]',
|
86
89
|
path: config.outputPath,
|
87
90
|
publicPath: config.publicPath
|
88
91
|
},
|
89
92
|
entry: getEntryObject(),
|
90
93
|
resolve: {
|
91
|
-
extensions: ['.js', '.mjs', '.ts', '.coffee'],
|
94
|
+
extensions: ['.js', '.jsx', '.mjs', '.ts', '.tsx', '.coffee'],
|
92
95
|
modules: getModulePaths(),
|
93
96
|
plugins: [PnpWebpackPlugin]
|
94
97
|
},
|
@@ -8,21 +8,39 @@ const baseConfig = require('./base')
|
|
8
8
|
const { moduleExists } = require('../utils/helpers')
|
9
9
|
|
10
10
|
const getPlugins = () => {
|
11
|
-
|
12
|
-
filename: '[path].gz[query]',
|
13
|
-
algorithm: 'gzip',
|
14
|
-
test: /\.(js|css|html|json|ico|svg|eot|otf|ttf|map)$/
|
15
|
-
})
|
11
|
+
const plugins = []
|
16
12
|
|
17
|
-
|
18
|
-
|
19
|
-
filename: '[path].
|
20
|
-
algorithm: '
|
13
|
+
plugins.push(
|
14
|
+
new CompressionPlugin({
|
15
|
+
filename: '[path][base].gz[query]',
|
16
|
+
algorithm: 'gzip',
|
21
17
|
test: /\.(js|css|html|json|ico|svg|eot|otf|ttf|map)$/
|
22
18
|
})
|
19
|
+
)
|
20
|
+
|
21
|
+
if ('brotli' in process.versions) {
|
22
|
+
plugins.push(
|
23
|
+
new CompressionPlugin({
|
24
|
+
filename: '[path][base].br[query]',
|
25
|
+
algorithm: 'brotliCompress',
|
26
|
+
test: /\.(js|css|html|json|ico|svg|eot|otf|ttf|map)$/
|
27
|
+
})
|
28
|
+
)
|
23
29
|
}
|
24
30
|
|
25
|
-
return
|
31
|
+
return plugins
|
32
|
+
}
|
33
|
+
|
34
|
+
const tryCssMinimizer = () => {
|
35
|
+
if (
|
36
|
+
moduleExists('css-loader') &&
|
37
|
+
moduleExists('css-minimizer-webpack-plugin')
|
38
|
+
) {
|
39
|
+
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin')
|
40
|
+
return new CssMinimizerPlugin({ sourceMap: true })
|
41
|
+
}
|
42
|
+
|
43
|
+
return null
|
26
44
|
}
|
27
45
|
|
28
46
|
const productionConfig = {
|
@@ -32,18 +50,7 @@ const productionConfig = {
|
|
32
50
|
plugins: getPlugins(),
|
33
51
|
optimization: {
|
34
52
|
minimizer: [
|
35
|
-
()
|
36
|
-
if (
|
37
|
-
moduleExists('css-loader') &&
|
38
|
-
moduleExists('css-minimizer-webpack-plugin')
|
39
|
-
) {
|
40
|
-
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin')
|
41
|
-
return new CssMinimizerPlugin({ sourceMap: true })
|
42
|
-
}
|
43
|
-
|
44
|
-
return false
|
45
|
-
},
|
46
|
-
|
53
|
+
tryCssMinimizer(),
|
47
54
|
new TerserPlugin({
|
48
55
|
parallel: Number.parseInt(process.env.WEBPACKER_PARALLEL, 10) || true,
|
49
56
|
terserOptions: {
|
data/package/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/* eslint global-require: 0 */
|
2
2
|
/* eslint import/no-dynamic-require: 0 */
|
3
3
|
|
4
|
-
const
|
4
|
+
const webpackMerge = require('webpack-merge')
|
5
5
|
const { resolve } = require('path')
|
6
6
|
const { existsSync } = require('fs')
|
7
7
|
const baseConfig = require('./environments/base')
|
@@ -23,7 +23,7 @@ module.exports = {
|
|
23
23
|
webpackConfig: webpackConfig(),
|
24
24
|
baseConfig,
|
25
25
|
rules,
|
26
|
-
merge,
|
27
26
|
moduleExists,
|
28
|
-
canProcess
|
27
|
+
canProcess,
|
28
|
+
...webpackMerge
|
29
29
|
}
|
data/package/rules/babel.js
CHANGED
@@ -8,7 +8,7 @@ const {
|
|
8
8
|
const { isProduction } = require('../env')
|
9
9
|
|
10
10
|
module.exports = {
|
11
|
-
test: /\.(js|jsx|mjs|ts|tsx)?(\.erb)?$/,
|
11
|
+
test: /\.(js|jsx|mjs|ts|tsx|coffee)?(\.erb)?$/,
|
12
12
|
include: [sourcePath, ...additionalPaths].map((p) => {
|
13
13
|
try {
|
14
14
|
return realpathSync(p)
|
data/package/rules/file.js
CHANGED
@@ -12,8 +12,12 @@ module.exports = {
|
|
12
12
|
/\.otf$/,
|
13
13
|
/\.ttf$/,
|
14
14
|
/\.woff$/,
|
15
|
-
/\.woff2
|
15
|
+
/\.woff2$/,
|
16
|
+
/\.svg$/
|
16
17
|
],
|
17
18
|
exclude: [/\.(js|mjs|jsx|ts|tsx)$/],
|
18
|
-
type: 'asset/resource'
|
19
|
+
type: 'asset/resource',
|
20
|
+
generator: {
|
21
|
+
filename: 'media/images/[hash][ext][query]'
|
22
|
+
}
|
19
23
|
}
|
data/package/rules/index.js
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
/* eslint import/no-dynamic-require: 0 */
|
3
3
|
|
4
4
|
const rules = {
|
5
|
+
raw: require('./raw'),
|
5
6
|
file: require('./file'),
|
6
|
-
svg: require('./svg'),
|
7
7
|
css: require('./css'),
|
8
8
|
sass: require('./sass'),
|
9
9
|
babel: require('./babel'),
|
10
10
|
erb: require('./erb'),
|
11
11
|
coffee: require('./coffee'),
|
12
12
|
less: require('./less'),
|
13
|
-
|
13
|
+
stylus: require('./stylus')
|
14
14
|
}
|
15
15
|
|
16
16
|
module.exports = Object.keys(rules)
|
@@ -0,0 +1,26 @@
|
|
1
|
+
const path = require('path')
|
2
|
+
const { canProcess } = require('../utils/helpers')
|
3
|
+
const getStyleRule = require('../utils/get_style_rule')
|
4
|
+
|
5
|
+
const {
|
6
|
+
additional_paths: paths,
|
7
|
+
source_path: sourcePath
|
8
|
+
} = require('../config')
|
9
|
+
|
10
|
+
module.exports = canProcess('stylus-loader', (resolvedPath) =>
|
11
|
+
getStyleRule(/\.(styl(us)?)(\.erb)?$/i, [
|
12
|
+
{
|
13
|
+
loader: resolvedPath,
|
14
|
+
options: {
|
15
|
+
stylusOptions: {
|
16
|
+
include: [
|
17
|
+
path.resolve(__dirname, 'node_modules'),
|
18
|
+
sourcePath,
|
19
|
+
...paths
|
20
|
+
]
|
21
|
+
},
|
22
|
+
sourceMap: true
|
23
|
+
}
|
24
|
+
}
|
25
|
+
])
|
26
|
+
)
|
data/package/utils/helpers.js
CHANGED
@@ -16,7 +16,7 @@ const resetEnv = () => {
|
|
16
16
|
|
17
17
|
const ensureTrailingSlash = (path) => (path.endsWith('/') ? path : `${path}/`)
|
18
18
|
|
19
|
-
const
|
19
|
+
const resolvedPath = (packageName) => {
|
20
20
|
try {
|
21
21
|
return require.resolve(packageName)
|
22
22
|
} catch (e) {
|
@@ -27,8 +27,10 @@ const moduleExists = (packageName) => {
|
|
27
27
|
}
|
28
28
|
}
|
29
29
|
|
30
|
+
const moduleExists = (packageName) => (!!resolvedPath(packageName))
|
31
|
+
|
30
32
|
const canProcess = (rule, fn) => {
|
31
|
-
const modulePath =
|
33
|
+
const modulePath = resolvedPath(rule)
|
32
34
|
|
33
35
|
if (modulePath) {
|
34
36
|
return fn(modulePath)
|
data/test/configuration_test.rb
CHANGED
@@ -10,12 +10,12 @@ class ConfigurationTest < Webpacker::Test
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def test_source_path
|
13
|
-
source_path = File.expand_path File.join(File.dirname(__FILE__), "test_app/app/
|
13
|
+
source_path = File.expand_path File.join(File.dirname(__FILE__), "test_app/app/packs").to_s
|
14
14
|
assert_equal source_path, @config.source_path.to_s
|
15
15
|
end
|
16
16
|
|
17
17
|
def test_source_entry_path
|
18
|
-
source_entry_path = File.expand_path File.join(File.dirname(__FILE__), "test_app/app/
|
18
|
+
source_entry_path = File.expand_path File.join(File.dirname(__FILE__), "test_app/app/packs", "entrypoints").to_s
|
19
19
|
assert_equal @config.source_entry_path.to_s, source_entry_path
|
20
20
|
end
|
21
21
|
|
@@ -43,19 +43,27 @@ class DevServerRunnerTest < Webpacker::Test
|
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
|
+
def test_environment_variables
|
47
|
+
cmd = ["#{test_app_path}/node_modules/.bin/webpack", "serve", "--config", "#{test_app_path}/config/webpack/development.js"]
|
48
|
+
env = Webpacker::Compiler.env.dup
|
49
|
+
env["WEBPACKER_CONFIG"] = "#{test_app_path}/config/webpacker.yml"
|
50
|
+
env["WEBPACK_DEV_SERVER"] = "true"
|
51
|
+
verify_command(cmd, env: env)
|
52
|
+
end
|
53
|
+
|
46
54
|
private
|
47
55
|
def test_app_path
|
48
56
|
File.expand_path("test_app", __dir__)
|
49
57
|
end
|
50
58
|
|
51
|
-
def verify_command(cmd, use_node_modules: true, argv: [])
|
59
|
+
def verify_command(cmd, use_node_modules: true, argv: [], env: Webpacker::Compiler.env)
|
52
60
|
cwd = Dir.pwd
|
53
61
|
Dir.chdir(test_app_path)
|
54
62
|
|
55
63
|
klass = Webpacker::DevServerRunner
|
56
64
|
instance = klass.new(argv)
|
57
65
|
mock = Minitest::Mock.new
|
58
|
-
mock.expect(:call, nil, [
|
66
|
+
mock.expect(:call, nil, [env, *cmd])
|
59
67
|
|
60
68
|
klass.stub(:new, instance) do
|
61
69
|
instance.stub(:node_modules_bin_exist?, use_node_modules) do
|
data/test/helper_test.rb
CHANGED
@@ -79,33 +79,6 @@ class HelperTest < ActionView::TestCase
|
|
79
79
|
favicon_pack_tag("media/images/nested/mb-icon.png", rel: "apple-touch-icon", type: "image/png")
|
80
80
|
end
|
81
81
|
|
82
|
-
def test_javascript_pack_tag
|
83
|
-
assert_equal \
|
84
|
-
%(<script src="/packs/bootstrap-300631c4f0e0f9c865bc.js"></script>),
|
85
|
-
javascript_pack_tag("bootstrap.js")
|
86
|
-
end
|
87
|
-
|
88
|
-
def test_javascript_pack_tag_symbol
|
89
|
-
assert_equal \
|
90
|
-
%(<script src="/packs/bootstrap-300631c4f0e0f9c865bc.js"></script>),
|
91
|
-
javascript_pack_tag(:bootstrap)
|
92
|
-
end
|
93
|
-
|
94
|
-
def test_javascript_pack_tag_splat
|
95
|
-
assert_equal \
|
96
|
-
%(<script src="/packs/bootstrap-300631c4f0e0f9c865bc.js" defer="defer"></script>\n) +
|
97
|
-
%(<script src="/packs/application-k344a6d59eef8632c9d1.js" defer="defer"></script>),
|
98
|
-
javascript_pack_tag("bootstrap.js", "application.js", defer: true)
|
99
|
-
end
|
100
|
-
|
101
|
-
def test_javascript_pack_tag_split_chunks
|
102
|
-
assert_equal \
|
103
|
-
%(<script src="/packs/vendors~application~bootstrap-c20632e7baf2c81200d3.chunk.js"></script>\n) +
|
104
|
-
%(<script src="/packs/vendors~application-e55f2aae30c07fb6d82a.chunk.js"></script>\n) +
|
105
|
-
%(<script src="/packs/application-k344a6d59eef8632c9d1.js"></script>),
|
106
|
-
javascript_packs_with_chunks_tag("application")
|
107
|
-
end
|
108
|
-
|
109
82
|
def test_preload_pack_asset
|
110
83
|
if self.class.method_defined?(:preload_link_tag)
|
111
84
|
assert_equal \
|
@@ -122,30 +95,51 @@ class HelperTest < ActionView::TestCase
|
|
122
95
|
end
|
123
96
|
end
|
124
97
|
|
125
|
-
def
|
98
|
+
def test_javascript_pack_tag
|
126
99
|
assert_equal \
|
127
|
-
%(<
|
128
|
-
%(<
|
129
|
-
%(<
|
130
|
-
|
100
|
+
%(<script src="/packs/vendors~application~bootstrap-c20632e7baf2c81200d3.chunk.js"></script>\n) +
|
101
|
+
%(<script src="/packs/vendors~application-e55f2aae30c07fb6d82a.chunk.js"></script>\n) +
|
102
|
+
%(<script src="/packs/application-k344a6d59eef8632c9d1.js"></script>\n) +
|
103
|
+
%(<script src="/packs/bootstrap-300631c4f0e0f9c865bc.js"></script>),
|
104
|
+
javascript_pack_tag("application", "bootstrap")
|
105
|
+
end
|
106
|
+
|
107
|
+
def test_javascript_pack_tag_splat
|
108
|
+
assert_equal \
|
109
|
+
%(<script src="/packs/vendors~application~bootstrap-c20632e7baf2c81200d3.chunk.js" defer="defer"></script>\n) +
|
110
|
+
%(<script src="/packs/vendors~application-e55f2aae30c07fb6d82a.chunk.js" defer="defer"></script>\n) +
|
111
|
+
%(<script src="/packs/application-k344a6d59eef8632c9d1.js" defer="defer"></script>),
|
112
|
+
javascript_pack_tag("application", defer: true)
|
113
|
+
end
|
114
|
+
|
115
|
+
def test_javascript_pack_tag_symbol
|
116
|
+
assert_equal \
|
117
|
+
%(<script src="/packs/vendors~application~bootstrap-c20632e7baf2c81200d3.chunk.js"></script>\n) +
|
118
|
+
%(<script src="/packs/vendors~application-e55f2aae30c07fb6d82a.chunk.js"></script>\n) +
|
119
|
+
%(<script src="/packs/application-k344a6d59eef8632c9d1.js"></script>),
|
120
|
+
javascript_pack_tag(:application)
|
131
121
|
end
|
132
122
|
|
133
123
|
def test_stylesheet_pack_tag
|
134
124
|
assert_equal \
|
135
|
-
%(<link rel="stylesheet" media="screen" href="/packs/
|
136
|
-
|
125
|
+
%(<link rel="stylesheet" media="screen" href="/packs/1-c20632e7baf2c81200d3.chunk.css" />\n) +
|
126
|
+
%(<link rel="stylesheet" media="screen" href="/packs/application-k344a6d59eef8632c9d1.chunk.css" />\n) +
|
127
|
+
%(<link rel="stylesheet" media="screen" href="/packs/hello_stimulus-k344a6d59eef8632c9d1.chunk.css" />),
|
128
|
+
stylesheet_pack_tag("application", "hello_stimulus")
|
137
129
|
end
|
138
130
|
|
139
131
|
def test_stylesheet_pack_tag_symbol
|
140
132
|
assert_equal \
|
141
|
-
%(<link rel="stylesheet" media="screen" href="/packs/
|
142
|
-
|
133
|
+
%(<link rel="stylesheet" media="screen" href="/packs/1-c20632e7baf2c81200d3.chunk.css" />\n) +
|
134
|
+
%(<link rel="stylesheet" media="screen" href="/packs/application-k344a6d59eef8632c9d1.chunk.css" />\n) +
|
135
|
+
%(<link rel="stylesheet" media="screen" href="/packs/hello_stimulus-k344a6d59eef8632c9d1.chunk.css" />),
|
136
|
+
stylesheet_pack_tag(:application, :hello_stimulus)
|
143
137
|
end
|
144
138
|
|
145
139
|
def test_stylesheet_pack_tag_splat
|
146
140
|
assert_equal \
|
147
|
-
%(<link rel="stylesheet" media="all" href="/packs/
|
148
|
-
%(<link rel="stylesheet" media="all" href="/packs/application-
|
149
|
-
stylesheet_pack_tag("
|
141
|
+
%(<link rel="stylesheet" media="all" href="/packs/1-c20632e7baf2c81200d3.chunk.css" />\n) +
|
142
|
+
%(<link rel="stylesheet" media="all" href="/packs/application-k344a6d59eef8632c9d1.chunk.css" />),
|
143
|
+
stylesheet_pack_tag("application", media: "all")
|
150
144
|
end
|
151
145
|
end
|
data/test/manifest_test.rb
CHANGED
@@ -25,6 +25,14 @@ class ManifestTest < Minitest::Test
|
|
25
25
|
assert_equal Webpacker.manifest.lookup!("bootstrap.js"), "/packs/bootstrap-300631c4f0e0f9c865bc.js"
|
26
26
|
end
|
27
27
|
|
28
|
+
def test_lookup_with_chunks_without_extension_success!
|
29
|
+
assert_equal Webpacker.manifest.lookup_pack_with_chunks!("bootstrap", type: :javascript), ["/packs/bootstrap-300631c4f0e0f9c865bc.js"]
|
30
|
+
end
|
31
|
+
|
32
|
+
def test_lookup_with_chunks_with_extension_success!
|
33
|
+
assert_equal Webpacker.manifest.lookup_pack_with_chunks!("bootstrap.js", type: :javascript), ["/packs/bootstrap-300631c4f0e0f9c865bc.js"]
|
34
|
+
end
|
35
|
+
|
28
36
|
def test_lookup_nil
|
29
37
|
assert_nil Webpacker.manifest.lookup("foo.js")
|
30
38
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# Note: You must restart bin/webpack-dev-server for changes to take effect
|
2
2
|
|
3
3
|
default: &default
|
4
|
-
source_path: app/
|
5
|
-
source_entry_path:
|
4
|
+
source_path: app/packs
|
5
|
+
source_entry_path: entrypoints
|
6
6
|
public_output_path: packs
|
7
7
|
cache_path: tmp/cache/webpacker
|
8
8
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/* eslint no-console:0 */
|
2
2
|
// This file is automatically compiled by Webpack, along with any other files
|
3
3
|
// present in this directory. You're encouraged to place your actual application logic in
|
4
|
-
// a relevant structure within app/
|
4
|
+
// a relevant structure within app/packs and only use these pack files to reference
|
5
5
|
// that code so it'll be compiled.
|
6
6
|
//
|
7
7
|
// To reference this file, add <%= javascript_pack_tag 'application' %> to the appropriate
|
File without changes
|
File without changes
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# Note: You must restart bin/webpack-dev-server for changes to take effect
|
2
2
|
|
3
3
|
default: &default
|
4
|
-
source_path: app/
|
5
|
-
source_entry_path:
|
4
|
+
source_path: app/packs
|
5
|
+
source_entry_path: entrypoints
|
6
6
|
public_root_path: public
|
7
7
|
public_output_path: packs
|
8
8
|
cache_path: tmp/cache/webpacker
|
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: 6.0.0.beta.
|
4
|
+
version: 6.0.0.beta.6
|
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:
|
12
|
+
date: 2021-02-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -134,6 +134,9 @@ files:
|
|
134
134
|
- MIT-LICENSE
|
135
135
|
- README.md
|
136
136
|
- Rakefile
|
137
|
+
- config/README.md
|
138
|
+
- config/webpacker.yml
|
139
|
+
- docs/troubleshooting.md
|
137
140
|
- gemfiles/Gemfile-rails-edge
|
138
141
|
- gemfiles/Gemfile-rails.5.2.x
|
139
142
|
- gemfiles/Gemfile-rails.6.0.x
|
@@ -145,8 +148,7 @@ files:
|
|
145
148
|
- lib/install/config/webpack/production.js
|
146
149
|
- lib/install/config/webpack/test.js
|
147
150
|
- lib/install/config/webpacker.yml
|
148
|
-
- lib/install/
|
149
|
-
- lib/install/javascript/packs/application.js
|
151
|
+
- lib/install/packs/entrypoints/application.js
|
150
152
|
- lib/install/template.rb
|
151
153
|
- lib/tasks/webpacker.rake
|
152
154
|
- lib/tasks/webpacker/binstubs.rake
|
@@ -180,6 +182,7 @@ files:
|
|
180
182
|
- package/__tests__/dev_server.js
|
181
183
|
- package/__tests__/development.js
|
182
184
|
- package/__tests__/env.js
|
185
|
+
- package/__tests__/index.js
|
183
186
|
- package/__tests__/production.js
|
184
187
|
- package/__tests__/staging.js
|
185
188
|
- package/__tests__/test.js
|
@@ -203,7 +206,7 @@ files:
|
|
203
206
|
- package/rules/less.js
|
204
207
|
- package/rules/raw.js
|
205
208
|
- package/rules/sass.js
|
206
|
-
- package/rules/
|
209
|
+
- package/rules/stylus.js
|
207
210
|
- package/utils/get_style_rule.js
|
208
211
|
- package/utils/helpers.js
|
209
212
|
- test/command_test.rb
|
@@ -226,9 +229,9 @@ files:
|
|
226
229
|
- test/mounted_app/test/dummy/package.json
|
227
230
|
- test/rake_tasks_test.rb
|
228
231
|
- test/test_app/Rakefile
|
229
|
-
- test/test_app/app/
|
230
|
-
- test/test_app/app/
|
231
|
-
- test/test_app/app/
|
232
|
+
- test/test_app/app/packs/entrypoints/application.js
|
233
|
+
- test/test_app/app/packs/entrypoints/multi_entry.css
|
234
|
+
- test/test_app/app/packs/entrypoints/multi_entry.js
|
232
235
|
- test/test_app/bin/webpack
|
233
236
|
- test/test_app/bin/webpack-dev-server
|
234
237
|
- test/test_app/config.ru
|
@@ -250,8 +253,8 @@ homepage: https://github.com/rails/webpacker
|
|
250
253
|
licenses:
|
251
254
|
- MIT
|
252
255
|
metadata:
|
253
|
-
source_code_uri: https://github.com/rails/webpacker/tree/v6.0.0.beta.
|
254
|
-
changelog_uri: https://github.com/rails/webpacker/blob/v6.0.0.beta.
|
256
|
+
source_code_uri: https://github.com/rails/webpacker/tree/v6.0.0.beta.6
|
257
|
+
changelog_uri: https://github.com/rails/webpacker/blob/v6.0.0.beta.6/CHANGELOG.md
|
255
258
|
post_install_message:
|
256
259
|
rdoc_options: []
|
257
260
|
require_paths:
|
@@ -292,9 +295,9 @@ test_files:
|
|
292
295
|
- test/mounted_app/test/dummy/package.json
|
293
296
|
- test/rake_tasks_test.rb
|
294
297
|
- test/test_app/Rakefile
|
295
|
-
- test/test_app/app/
|
296
|
-
- test/test_app/app/
|
297
|
-
- test/test_app/app/
|
298
|
+
- test/test_app/app/packs/entrypoints/application.js
|
299
|
+
- test/test_app/app/packs/entrypoints/multi_entry.css
|
300
|
+
- test/test_app/app/packs/entrypoints/multi_entry.js
|
298
301
|
- test/test_app/bin/webpack
|
299
302
|
- test/test_app/bin/webpack-dev-server
|
300
303
|
- test/test_app/config.ru
|