-
-
Notifications
You must be signed in to change notification settings - Fork 405
/
vite.config.js
67 lines (66 loc) · 2.93 KB
/
vite.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import vue from '@vitejs/plugin-vue2';
import { viteStaticCopy } from 'vite-plugin-static-copy';
export default defineConfig({
resolve: {
alias: {
vue: 'vue/dist/vue.esm.js',
},
},
plugins: [
laravel({
input: ['resources/scss/public.scss', 'resources/scss/admin.scss', 'resources/js/public.js', 'resources/js/admin.js'],
refresh: true,
}),
vue({
template: {
transformAssetUrls: {
// base: null,
// includeAbsolute: false,
},
},
}),
viteStaticCopy({
targets: [
// Main CKEditor files and skins
{
src: ['node_modules/ckeditor4/ckeditor.js', 'node_modules/ckeditor4/contents.css', 'node_modules/ckeditor4/skins'],
dest: '../../public/components/ckeditor4/',
},
// CKEditor locales
{
src: ['node_modules/ckeditor4/lang/fr.js', 'node_modules/ckeditor4/lang/nl.js', 'node_modules/ckeditor4/lang/en.js', 'node_modules/ckeditor4/lang/es.js'],
dest: '../../public/components/ckeditor4/lang/',
},
// CKEditor plugins
{
src: [
'node_modules/ckeditor4/plugins/dialog',
'node_modules/ckeditor4/plugins/dialogadvtab',
'node_modules/ckeditor4/plugins/div',
'node_modules/ckeditor4/plugins/embed',
'node_modules/ckeditor4/plugins/embedbase',
'node_modules/ckeditor4/plugins/image',
'node_modules/ckeditor4/plugins/image2',
'node_modules/ckeditor4/plugins/justify',
'node_modules/ckeditor4/plugins/link',
'node_modules/ckeditor4/plugins/magicline',
'node_modules/ckeditor4/plugins/panelbutton',
'node_modules/ckeditor4/plugins/pastefromgdocs',
'node_modules/ckeditor4/plugins/pastefromword',
'node_modules/ckeditor4/plugins/pastetools',
'node_modules/ckeditor4/plugins/scayt',
'node_modules/ckeditor4/plugins/showblocks',
'node_modules/ckeditor4/plugins/specialchar',
'node_modules/ckeditor4/plugins/table',
'node_modules/ckeditor4/plugins/tableselection',
'node_modules/ckeditor4/plugins/tabletools',
'node_modules/ckeditor4/plugins/widget',
],
dest: '../../public/components/ckeditor4/plugins/',
},
],
}),
],
});