forked from danielstocks/react-sortable
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.devConfig.js
More file actions
Latest commit
24 lines (23 loc) · 576 Bytes
/
Copy pathwebpack.devConfig.js
File metadata and controls
24 lines (23 loc) · 576 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
varpath=require("path");
varwebpack=require("webpack");
module.exports={
entry: "./examples/basic-list/index.js",
//entry: "./examples/basic-grid/index.js",
//entry: "./examples/html-table/index.js",
//entry: "./examples/redux/index.js",
output: {
path: __dirname,
filename: "bundle.js"
},
devServer: {
contentBase: './examples',
contentBase: [path.join(__dirname,"examples"),path.join(__dirname,"css")]
},
devtool: 'source-map',
module: {
rules: [
{test: /\.js?$/,use: 'babel-loader'},
]
},
watch: true
};