質問編集履歴
2
タイトル修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
webpackでjQueryをすべてのjsファイル内で使いたい
|
test
CHANGED
File without changes
|
1
package.jsonの追加
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
webpackでjQueryをすべてのjsファイル内で使いたい
|
1
|
+
kwebpackでjQueryをすべてのjsファイル内で使いたい
|
test
CHANGED
@@ -160,6 +160,42 @@
|
|
160
160
|
|
161
161
|
```
|
162
162
|
|
163
|
+
```json
|
164
|
+
|
165
|
+
//package.json
|
166
|
+
|
167
|
+
{
|
168
|
+
|
169
|
+
"scripts": {
|
170
|
+
|
171
|
+
"build": "webpack --watch"
|
172
|
+
|
173
|
+
},
|
174
|
+
|
175
|
+
"dependencies": {
|
176
|
+
|
177
|
+
"css-loader": "^3.4.2",
|
178
|
+
|
179
|
+
"jquery": "^3.4.1",
|
180
|
+
|
181
|
+
"node-sass": "^4.13.1",
|
182
|
+
|
183
|
+
"sass-loader": "^8.0.2",
|
184
|
+
|
185
|
+
"style-loader": "^1.1.3",
|
186
|
+
|
187
|
+
"webpack": "^4.41.5",
|
188
|
+
|
189
|
+
"webpack-cli": "^3.3.10"
|
190
|
+
|
191
|
+
}
|
192
|
+
|
193
|
+
}
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
```
|
198
|
+
|
163
199
|
```error
|
164
200
|
|
165
201
|
ReferenceError: webpack is not defined
|