-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwebpack.guidance.config.cjs
46 lines (45 loc) · 1.3 KB
/
webpack.guidance.config.cjs
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
46
const path = require("path");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const outDir = path.resolve(__dirname, "./docs");
module.exports = {
entry: {
formguidance: path.resolve(__dirname, "./docs-files/json-schema/form.guidance.ts"),
},
output: {
path: outDir,
filename: "[name].min.js",
},
mode: "production",
module: {
rules: [
{
test: /.tsx?$/,
use: [
{
loader: "ts-loader",
options: {
onlyCompileBundledFiles: true,
compilerOptions: {
declaration: false,
},
configFile: "tsconfig.json",
},
},
],
},
],
},
plugins: [
new CopyWebpackPlugin({
patterns: [
{
from: path.resolve(__dirname, "./packages/design-to-code/dist/stylesheets/web-components/style/global.css-variables.css"),
to: "global.css-variables.css"
},
],
}),
],
resolve: {
extensions: [".js", ".tsx", ".ts", ".json"],
},
};