1
1
export default {
2
2
// Global page headers: https://go.nuxtjs.dev/config-head
3
3
head : {
4
- title : ' nuxt2-particles-demo' ,
4
+ title : " nuxt2-particles-demo" ,
5
5
htmlAttrs : {
6
- lang : 'en' ,
6
+ lang : "en"
7
7
} ,
8
8
meta : [
9
- { charset : ' utf-8' } ,
10
- { name : ' viewport' , content : ' width=device-width, initial-scale=1' } ,
11
- { hid : ' description' , name : ' description' , content : '' } ,
12
- { name : ' format-detection' , content : ' telephone=no' } ,
9
+ { charset : " utf-8" } ,
10
+ { name : " viewport" , content : " width=device-width, initial-scale=1" } ,
11
+ { hid : " description" , name : " description" , content : "" } ,
12
+ { name : " format-detection" , content : " telephone=no" }
13
13
] ,
14
- link : [ { rel : ' icon' , type : ' image/x-icon' , href : ' /favicon.ico' } ] ,
14
+ link : [ { rel : " icon" , type : " image/x-icon" , href : " /favicon.ico" } ]
15
15
} ,
16
16
17
17
// Global CSS: https://go.nuxtjs.dev/config-css
@@ -20,9 +20,9 @@ export default {
20
20
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
21
21
plugins : [
22
22
{
23
- src : ' ~/plugins/vue2-particles.js' ,
24
- mode : ' client' ,
25
- } ,
23
+ src : " ~/plugins/vue2-particles.js" ,
24
+ mode : " client"
25
+ }
26
26
] ,
27
27
28
28
// Auto import components: https://go.nuxtjs.dev/config-components
@@ -31,12 +31,101 @@ export default {
31
31
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
32
32
buildModules : [
33
33
// https://go.nuxtjs.dev/eslint
34
- ' @nuxtjs/eslint-module' ,
34
+ " @nuxtjs/eslint-module"
35
35
] ,
36
36
37
37
// Modules: https://go.nuxtjs.dev/config-modules
38
38
modules : [ ] ,
39
39
40
40
// Build Configuration: https://go.nuxtjs.dev/config-build
41
- build : { } ,
42
- }
41
+ build : {
42
+ babel : {
43
+ babelrc : true ,
44
+ configFile : "./babel.config.js"
45
+ } ,
46
+ transpile : [ "tsparticles" ,
47
+ "tsparticles-particles.js" ,
48
+ "tsparticles-slim" ,
49
+ "tsparticles-editor" ,
50
+ "tsparticles-engine" ,
51
+ "tsparticles-interaction-light" ,
52
+ "tsparticles-interaction-external-attract" ,
53
+ "tsparticles-interaction-external-bounce" ,
54
+ "tsparticles-interaction-external-bubble" ,
55
+ "tsparticles-interaction-external-connect" ,
56
+ "tsparticles-interaction-external-grab" ,
57
+ "tsparticles-interaction-external-pause" ,
58
+ "tsparticles-interaction-external-push" ,
59
+ "tsparticles-interaction-external-remove" ,
60
+ "tsparticles-interaction-external-repulse" ,
61
+ "tsparticles-interaction-external-slow" ,
62
+ "tsparticles-interaction-external-trail" ,
63
+ "tsparticles-interaction-particles-attract" ,
64
+ "tsparticles-interaction-particles-collisions" ,
65
+ "tsparticles-interaction-particles-links" ,
66
+ "tsparticles-interaction-particles-repulse" ,
67
+ "tsparticles-move-base" ,
68
+ "tsparticles-move-parallax" ,
69
+ "tsparticles-path-curves" ,
70
+ "tsparticles-path-perlin-noise" ,
71
+ "tsparticles-path-polygon" ,
72
+ "tsparticles-path-simplex-noise" ,
73
+ "tsparticles-plugin-absorbers" ,
74
+ "tsparticles-plugin-canvas-mask" ,
75
+ "tsparticles-plugin-emitters" ,
76
+ "tsparticles-plugin-hsv-color" ,
77
+ "tsparticles-plugin-infection" ,
78
+ "tsparticles-plugin-motion" ,
79
+ "tsparticles-plugin-polygon-mask" ,
80
+ "tsparticles-plugin-sounds" ,
81
+ "tsparticles-plugin-easing-back" ,
82
+ "tsparticles-plugin-easing-circ" ,
83
+ "tsparticles-plugin-easing-cubic" ,
84
+ "tsparticles-plugin-easing-expo" ,
85
+ "tsparticles-plugin-easing-quad" ,
86
+ "tsparticles-plugin-easing-quart" ,
87
+ "tsparticles-plugin-easing-quint" ,
88
+ "tsparticles-plugin-easing-sine" ,
89
+ "tsparticles-preset-big-circles" ,
90
+ "tsparticles-preset-bubbles" ,
91
+ "tsparticles-preset-confetti" ,
92
+ "tsparticles-preset-fire" ,
93
+ "tsparticles-preset-firefly" ,
94
+ "tsparticles-preset-fireworks" ,
95
+ "tsparticles-preset-fountain" ,
96
+ "tsparticles-preset-links" ,
97
+ "tsparticles-preset-sea-anemone" ,
98
+ "tsparticles-preset-snow" ,
99
+ "tsparticles-preset-stars" ,
100
+ "tsparticles-preset-triangles" ,
101
+ "tsparticles-shape-bubble" ,
102
+ "tsparticles-shape-cards" ,
103
+ "tsparticles-shape-circle" ,
104
+ "tsparticles-shape-heart" ,
105
+ "tsparticles-shape-image" ,
106
+ "tsparticles-shape-line" ,
107
+ "tsparticles-shape-multiline-text" ,
108
+ "tsparticles-shape-path" ,
109
+ "tsparticles-shape-polygon" ,
110
+ "tsparticles-shape-rounded-rect" ,
111
+ "tsparticles-shape-spiral" ,
112
+ "tsparticles-shape-square" ,
113
+ "tsparticles-shape-star" ,
114
+ "tsparticles-shape-text" ,
115
+ "tsparticles-updater-angle" ,
116
+ "tsparticles-updater-color" ,
117
+ "tsparticles-updater-destroy" ,
118
+ "tsparticles-updater-gradient" ,
119
+ "tsparticles-updater-life" ,
120
+ "tsparticles-updater-opacity" ,
121
+ "tsparticles-updater-orbit" ,
122
+ "tsparticles-updater-out-modes" ,
123
+ "tsparticles-updater-roll" ,
124
+ "tsparticles-updater-size" ,
125
+ "tsparticles-updater-stroke-color" ,
126
+ "tsparticles-updater-tilt" ,
127
+ "tsparticles-updater-twinkle" ,
128
+ "tsparticles-updater-wobble" ,
129
+ "tsparticles-demo-configs" ]
130
+ }
131
+ } ;
0 commit comments