forked from ppisljar/espeasy_new_ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
34 lines (33 loc) · 877 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
var path = require('path');
var webpack = require('webpack');
var LiveReloadPlugin = require('webpack-livereload-plugin');
var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
module.exports = env => ({
mode: 'production', //env && env.production ? 'production' : 'development',
entry: {
app: './src/app.js',
dash: './src/plugins/dashboard/index.js',
},
output: {
path: path.resolve(__dirname, 'build'),
},
plugins: [
new LiveReloadPlugin(),
//new BundleAnalyzerPlugin()
],
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader'
}
}
]
},
stats: {
colors: true
},
devtool: 'source-map'
});