-
Notifications
You must be signed in to change notification settings - Fork 3.3k
/
stencil.config.js
44 lines (42 loc) · 928 Bytes
/
stencil.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
const { sass } = require('@stencil/sass');
const nodePolyfills = require('rollup-plugin-node-polyfills');
exports.config = {
namespace: 'ionic-site-components',
plugins: [
sass()
],
rollupPlugins: {
after: [
nodePolyfills()
]
},
outputTargets: [
// {
// type: 'dist',
// dir: '_site/js/stencil',
// },
{
type: 'dist',
dir: 'dist/js/stencil',
copy: [
{
src: '../../node_modules/ionicons/dist/svg',
dest: '../svg'
},
{
src: '../../node_modules/emoji-datasource-twitter/emoji.json',
dest: '../emoji.json'
},
{
src: '../../node_modules/emoji-datasource-twitter/img/twitter/sheets-256/64.png',
dest: '../emoji-sheet-twitter-256-64.png'
}
],
},
],
srcDir: 'assets/stencil'
};
exports.devServer = {
root: 'www',
watchGlob: '**/**'
};