teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

追加編集しました

2020/11/19 01:42

投稿

oyu
oyu

スコア48

title CHANGED
File without changes
body CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  webpack初心者です。
4
4
  npx webpackで実行したのですがエラーが出ます。
5
+ webpack.config.jsファイルを作ってからエラーが出ました。
6
+
5
7
  設定ファイルを編集しているのですがググっても
6
8
  エラーの原因が分かりません。
7
9
 
@@ -17,4 +19,13 @@
17
19
  - configuration.devtool should match pattern "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$".
18
20
  BREAKING CHANGE since webpack 5: The devtool option is more strict.
19
21
  Please strictly follow the order of the keywords in the pattern.
22
+ ```
23
+
24
+ ```webpack.config.js
25
+ webpack.config.jsのコードになります。
26
+
27
+ module.exports = {
28
+ mode: "development",
29
+ devtool: 'none'
30
+ }
20
31
  ```