73kus-err/configuration/webpack.dev.config.js

39 lines
864 B
JavaScript
Raw Normal View History

2021-08-02 17:05:36 -04:00
/* eslint-disable import/no-extraneous-dependencies */
const { merge } = require('webpack-merge');
const webpackConfiguration = require('../webpack.config');
const environment = require('./environment');
module.exports = merge(webpackConfiguration, {
mode: 'development',
/* Manage source maps generation process */
devtool: 'eval-source-map',
/* Development Server Configuration */
devServer: {
2021-11-25 14:30:01 -05:00
static: {
directory: environment.paths.output,
staticOptions: {},
publicPath: "/",
serveIndex: true,
watch: true,
},
2021-08-02 17:05:36 -04:00
open: true,
historyApiFallback: true,
compress: true,
hot: false,
...environment.server,
},
/* File watcher options */
watchOptions: {
aggregateTimeout: 300,
poll: 300,
ignored: /node_modules/,
},
/* Additional plugins configuration */
plugins: [],
});