-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathwebpack.local.js
29 lines (28 loc) · 954 Bytes
/
webpack.local.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
const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
const webpack = require("webpack");
const path = require('path');
const apiMocker = require('mocker-api');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
module.exports = merge(common, {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
static: './dist',
port: 9000,
},
plugins: [
new BundleAnalyzerPlugin(),
new webpack.EnvironmentPlugin({
BASE_URL: 'http://localhost:9000/',
COMPONENT_URL: 'http://localhost:9000/cta/',
MDQ_URL: 'http://localhost:8080/entities/',
PERSISTENCE_URL: 'http://localhost:9000/ps/',
SEARCH_URL: 'http://localhost:8080/entities/',
STORAGE_DOMAIN: 'localhost:9000',
LOGLEVEL: 'warn',
DEFAULT_CONTEXT: 'thiss.io',
NODE_ENV: 'development',
DEBUG: true,
})]
});