-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstencil.config.js
45 lines (43 loc) · 1000 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
45
const sass = require('@stencil/sass');
const path = require('path');
exports.config = {
globalStyle: 'src/global/app.scss',
plugins: [
sass(),
{
options(input) {
input.context = 'window';
return input;
}
}
],
copy: [{
src: path.resolve('./node_modules/font-awesome/fonts'),
dest: 'build/node_modules/font-awesome/fonts'
},
{
src: path.resolve('./node_modules/@icon/themify-icons/themify-icons.woff'),
dest: 'build/node_modules/@icon/themify-icons/themify-icons.woff'
},
{
src: path.resolve('./node_modules/@icon/themify-icons/themify-icons.ttf'),
dest: 'build/node_modules/@icon/themify-icons/themify-icons.ttf'
}
],
nodeResolve: {
preferBuiltins: true,
browser: true
},
commonjs: {
include: [
'node_modules/**'
],
namedExports: {
'node_modules/punycode/punycode.js': ['toASCII']
}
}
};
exports.devServer = {
root: 'www',
watchGlob: '**/**'
};