質問編集履歴
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -83,3 +83,33 @@
|
|
83
83
|
ruby 2.6.1p33
|
84
84
|
|
85
85
|
webpack 4.43.0
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
### 追記
|
90
|
+
|
91
|
+
config/webpack/environment.js
|
92
|
+
|
93
|
+
```
|
94
|
+
|
95
|
+
const { environment } = require('@rails/webpacker')
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
const webpack = require('webpack')
|
100
|
+
|
101
|
+
environment.plugins.prepend('Provide', new webpack.ProvidePlugin({
|
102
|
+
|
103
|
+
$: 'jquery/src/jquery',
|
104
|
+
|
105
|
+
jQuery: 'jquery/src/jquery'
|
106
|
+
|
107
|
+
})
|
108
|
+
|
109
|
+
)
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
module.exports = environment
|
114
|
+
|
115
|
+
```
|
1
修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rails6で
|
1
|
+
rails6でjQueryが使えない
|
test
CHANGED
File without changes
|