UNPKG

759 BJavaScriptView Raw
1/**
2 * Webpack configuration for active development
3 */
4const webpack = require('webpack');
5const merge = require('webpack-merge');
6const { fromCwd } = require('quickenv');
7
8module.exports = merge(require('./config.app.js'), {
9 devtool: 'eval-source-map',
10
11 plugins: [new webpack.HotModuleReplacementPlugin()],
12
13 optimization: {
14 namedModules: true,
15 noEmitOnErrors: true,
16 },
17
18 devServer: {
19 contentBase: [fromCwd('src')],
20 compress: true,
21 headers: {
22 'X-Content-Type-Options': 'nosniff',
23 'X-Frame-Options': 'DENY',
24 },
25 host: '0.0.0.0',
26 open: false,
27 overlay: {
28 warnings: false,
29 errors: true,
30 },
31 inline: true,
32 port: 8080,
33 publicPath: 'http://localhost:8080/',
34 hot: true,
35 },
36});