forked from belay-labs/bx-stable-infinite-scroll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.example.js
41 lines (40 loc) · 1.01 KB
/
webpack.example.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
const CopyPlugin = require("copy-webpack-plugin");
const path = require("path");
const merge = require("webpack-merge");
const common = require("./webpack.common.js");
module.exports = merge(common, {
entry: {
main: ["@babel/polyfill", path.join(__dirname, "examples/src/index.tsx")],
virtualized: [
"@babel/polyfill",
path.join(__dirname, "examples/src/virtualized.tsx"),
],
},
output: {
path: path.join(__dirname, "examples/dist"),
filename: "[name].js",
},
devServer: {
port: 3001,
},
plugins: [
new CopyPlugin({
patterns: [
{
from: "**/*.yml",
context: path.resolve(__dirname, "examples", "src"),
},
{
from: "Gemfile",
context: path.resolve(__dirname, "examples", "src"),
},
{
from: "**/*.md",
context: path.resolve(__dirname, "examples", "src"),
},
{ from: "README.md" },
{ from: "examples/src/_layouts", to: "_layouts" },
],
}),
],
});