-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.common.js
39 lines (37 loc) · 922 Bytes
/
webpack.common.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
var webpack = require("webpack");
const path = require("path");
var settings = {};
module.exports = {
entry: "./src/index.js",
output: {
path: path.resolve(__dirname, "../backend/market/static")
},
resolve: {
modules: [
path.resolve("./src"),
path.resolve("./node_modules")
]
},
plugins: [],
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
loader: "babel-loader",
query: {
presets: ["es2015", "react"],
plugins: ["transform-object-rest-spread"]
}
},
{
test: /\.css$/,
loader: "style-loader"
},
{
test: /\.css$/,
loader: "css-loader"
}
]
}
};