質問編集履歴

1

config追加

2022/09/15 04:15

投稿

s0h5511
s0h5511

スコア4

test CHANGED
File without changes
test CHANGED
@@ -15,6 +15,37 @@
15
15
  個別のjsでも使えるようにしたいです。
16
16
 
17
17
  ### 該当のソースコード
18
+
19
+ #### nuxt.config.js
20
+
21
+ ```js
22
+ export default {
23
+ srcDir: 'src/',
24
+ mode: 'universal',
25
+ /*
26
+ ** Plugins to load before mounting the App
27
+ */
28
+ plugins: [
29
+ {
30
+ src: '~/plugins/magnific.min.js',
31
+ mode: 'client'
32
+ }
33
+ ],
34
+ /*
35
+ ** Build configuration
36
+ */
37
+ build: {
38
+ /*
39
+ ** You can extend webpack config here
40
+ */
41
+ extend(config, ctx) {
42
+ config.externals = {
43
+ jquery: 'jQuery'
44
+ };
45
+ },
46
+ },
47
+ }
48
+ ```
18
49
 
19
50
  #### index.vue
20
51
  ```js