-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathwebpack.dev.js
More file actions
36 lines (35 loc) · 1.1 KB
/
webpack.dev.js
File metadata and controls
36 lines (35 loc) · 1.1 KB
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
35
36
const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
const webpack = require("webpack");
const path = require('path');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
module.exports = merge(common, {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
client: {
logging: 'verbose',
webSocketURL: 'ws://127.0.0.1:9000/ws',
overlay: false,
},
allowedHosts: 'all',
static: { directory: path.join(__dirname,'dist'), },
port: 9000,
},
output: {
publicPath: '/'
},
plugins: [
new BundleAnalyzerPlugin(),
new webpack.EnvironmentPlugin({
BASE_URL: 'http://localhost:9000/',
COMPONENT_URL: 'http://localhost:9000/cta/',
MDQ_URL: '/entities/',
PERSISTENCE_URL: 'http://localhost:9000/ps/',
SEARCH_URL: '/entities/',
STORAGE_DOMAIN: 'localhost:9000',
LOGLEVEL: 'warn',
DEFAULT_CONTEXT: 'thiss.io',
MIN_SEARCH_LENGTH: '3'
})]
});