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

質問編集履歴

1

nuxt.config.jsの追記

2021/01/23 08:41

投稿

iamudaemon
iamudaemon

スコア0

title CHANGED
File without changes
body CHANGED
@@ -41,4 +41,50 @@
41
41
  と表示され、
42
42
  http://localhost:3000/
43
43
  で確認できるようになるのですが、こちらとS3に上げた時の挙動がどう変化するのかが知りたいです。
44
- ど素人な質問ですみません、よろしくお願い致します。
44
+ ど素人な質問ですみません、よろしくお願い致します。
45
+
46
+
47
+ [追記]
48
+ ```nuxt.config.js
49
+ export default {
50
+ // Target: https://go.nuxtjs.dev/config-target
51
+ target: 'static',
52
+
53
+ // Global page headers: https://go.nuxtjs.dev/config-head
54
+ head: {
55
+ title: 'test',
56
+ htmlAttrs: {
57
+ lang: 'en',
58
+ },
59
+ meta: [
60
+ { charset: 'utf-8' },
61
+ { name: 'viewport', content: 'width=device-width, initial-scale=1' },
62
+ { hid: 'description', name: 'description', content: '' },
63
+ ],
64
+ link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
65
+ },
66
+
67
+ // Global CSS: https://go.nuxtjs.dev/config-css
68
+ css: [],
69
+
70
+ // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
71
+ plugins: [],
72
+
73
+ // Auto import components: https://go.nuxtjs.dev/config-components
74
+ components: true,
75
+
76
+ // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
77
+ buildModules: [
78
+ // https://go.nuxtjs.dev/eslint
79
+ '@nuxtjs/eslint-module',
80
+ // https://go.nuxtjs.dev/stylelint
81
+ '@nuxtjs/stylelint-module',
82
+ ],
83
+
84
+ // Modules: https://go.nuxtjs.dev/config-modules
85
+ modules: [],
86
+
87
+ // Build Configuration: https://go.nuxtjs.dev/config-build
88
+ build: {},
89
+ }
90
+ ```