wisemapping-frontend/packages/mindplot/webpack.dev.js
2021-10-02 20:29:24 -07:00

18 lines
466 B
JavaScript

const { HotModuleReplacementPlugin } = require('webpack');
const { merge } = require('webpack-merge');
const common = require('./webpack.common');
/** @type {import('webpack').Configuration} */
const devConfig = {
mode: 'development',
devServer: {
historyApiFallback: true,
port: 8080,
open: true,
},
plugins: [new HotModuleReplacementPlugin()],
devtool: 'eval-source-map',
};
module.exports = merge(common, devConfig);