回答編集履歴

1

publicPathでの設定を追加

2022/06/24 10:25

投稿

k_a
k_a

スコア983

test CHANGED
@@ -3,9 +3,10 @@
3
3
  ```
4
4
  build: {
5
5
  filenames: {
6
- chunk: "script/[contenthash:7].js",
6
+ chunk: "_nuxt/[contenthash:7].js",
7
- app: "script/[contenthash:7].js",
7
+ app: "_nuxt/[contenthash:7].js",
8
8
  },
9
+ publicPath: "script",
9
10
  },
10
11
  ```
11
12
  参考:https://nuxtjs.org/docs/configuration-glossary/configuration-build/#filenames