-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrollup.config.js
33 lines (32 loc) · 954 Bytes
/
rollup.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
import copy from 'rollup-plugin-copy';
import sass from 'rollup-plugin-sass';
export default [
{
input: 'assets/js/main.js',
output: {
file: 'public/storia.js',
format: 'esm',
},
external: [
'@hotwired/stimulus',
'highlight.js/lib/core',
'highlight.js/lib/languages/twig',
'highlight.js/lib/languages/xml',
],
plugins: [
sass({
output: 'public/storia.css',
options: {
outputStyle: 'compressed',
silenceDeprecations: ['legacy-js-api'],
},
}),
copy({
targets: [
{ src: 'node_modules/@hotwired/stimulus/dist/stimulus.js', dest: 'public/vendor/stimulus' },
{ src: 'assets/fonts', dest: 'public' },
],
}),
],
},
];