-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
34 lines (34 loc) · 896 Bytes
/
webpack.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
module.exports = {
entry: "./app.js",
output: {
path: "./examples",
filename: "app.js" // Template based on keys in entry above
},
externals: [
{
"../externals/react-fiber/build/packages/react/umd/react.production.min.js": "React"
},
{
"../externals/react-fiber/build/packages/react-dom/umd/react-dom.production.min.js": "ReactDOM"
}
],
module: {
loaders: [
{
test: /\.jsx?$/,
loader: "babel-loader",
query: {
presets: ["react", "es2015"]
}
},
{
test: /\.s?css$/,
loader: "style-loader!css-loader!sass-loader"
},
{
test: /\.svg/,
loader: "url-loader"
}
]
}
};