-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstencil.config.ts
executable file
·41 lines (40 loc) · 1.06 KB
/
stencil.config.ts
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
import { Config } from '@stencil/core';
import { sass } from '@stencil/sass';
import { postcss } from '@stencil/postcss';
import * as precss from 'precss';
import * as atImport from 'postcss-import';
import * as pfm from 'postcss-font-magician';
import * as autoprefixer from 'autoprefixer';
import * as cssnano from 'cssnano';
import * as postComment from 'postcss-comment';
export const config: Config = {
namespace: 'at-article',
bundles: [
{components: ['at-abstract', 'at-article', 'at-article-content', 'at-reference', 'at-block', 'at-blockquote', 'at-callout', 'at-citation', 'at-control', 'at-figure', 'at-note', 'at-notes', 'at-references', 'at-resume', 'at-summary', 'at-toc']}
],
outputTargets:[
{
type: 'dist'
},
{
type: 'www',
serviceWorker: null
}
],
plugins: [
sass(),
postcss({
injectGlobalPaths: [
//'src/globals/variables.css'
],
parser: postComment,
plugins: [
atImport(),
precss(),
autoprefixer(),
pfm(),
cssnano()
]
})
]
};