-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwebpack.config.js
More file actions
30 lines (29 loc) · 828 Bytes
/
webpack.config.js
File metadata and controls
30 lines (29 loc) · 828 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
30
const webpack = require('webpack');
module.exports = {
entry: {
account: ["babel-polyfill", './apps/account/app.js'],
login: ["babel-polyfill", './apps/login/app.js']
},
output: {
path: __dirname,
filename: './public/js/[name].bundle.js'
},
resolve: {
extensions: ['.js', '.jsx']
},
module: {
rules: [
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader',
options: {
presets: ['react', 'es2015', 'stage-0']
}
}
}
]
},
devtool: process.env.NODE_ENV === 'production' ? 'nosources-source-map' : 'cheap-module-eval-source-map'
};