mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-12-23 12:03:49 +01:00
19 lines
485 B
JavaScript
19 lines
485 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,
|
|
},
|
|
target: 'web',
|
|
plugins: [new HotModuleReplacementPlugin()],
|
|
devtool: 'eval-source-map',
|
|
};
|
|
|
|
module.exports = merge(common, devConfig);
|