-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
stencil.config.ts
38 lines (37 loc) · 896 Bytes
/
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
import { Config } from "@stencil/core";
import { sass } from "@stencil/sass";
import { postcss } from "@stencil/postcss";
import autoprefixer from "autoprefixer";
import pxtorem from "postcss-pxtorem";
export const config: Config = {
namespace: "soft-components",
buildEs5: 'prod',
outputTargets: [
{
type: "dist",
esmLoaderPath: "../loader",
},
{
type: "www",
serviceWorker: null, // disable service workers
},
{ type: "docs-json", file: "docs/docs-data.json" },
{ type: "docs-readme" },
],
globalStyle: "src/global/app.scss",
plugins: [
sass({
injectGlobalPaths: ["src/global/scss/mixins.scss"],
}),
postcss({
plugins: [
autoprefixer(),
pxtorem({
propList: ["*"],
selectorBlackList: [":root", "html", "body"],
replace: false,
}),
],
}),
],
};