forked from s-yadav/react-number-format
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.dev.config.js
More file actions
29 lines (29 loc) · 776 Bytes
/
Copy pathwebpack.dev.config.js
File metadata and controls
29 lines (29 loc) · 776 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
25
26
27
28
29
module.exports = {
entry: {
'bundle' : [
'./example/src/index.js'
]
},
devtool: "eval-source-map",
debug: true,
output: {
publicPath: "http://localhost:9000/",
// path: path.join(__dirname, "public","js"),
filename: '[name].js'
},
resolveLoader: {
modulesDirectories: ['node_modules']
},
resolve: {
extensions: ['','.js'] //can add jsx also but not required
},
module: {
loaders: [
// { test: /\.css$/, loaders: ['style', 'css']},
// { test: /\.cjsx$/, loaders: ['react-hot', 'coffee', 'cjsx']},
// { test: /\.coffee$/, loader: 'coffee' }
{test: /\.js$/, loaders:['babel','eslint-loader'], exclude: /node_modules/},
//{ test: /\.css$/, loader: "style-loader!css-loader" },
]
}
};