wisemapping-frontend/packages/webcomponent/webpack.dev.js
2021-09-29 17:24:07 -03:00

21 lines
554 B
JavaScript

const path = require('path');
const { HotModuleReplacementPlugin } = require('webpack');
const { merge } = require('webpack-merge');
const common = require('./webpack.common');
/** @type {import('webpack').Configuration} */
const devConfig = {
mode: 'development',
devServer: {
contentBase: path.join(__dirname, 'lib'),
compress: true,
port: 8080,
hot: true,
},
target: 'web',
plugins: [new HotModuleReplacementPlugin()],
devtool: 'eval-source-map',
};
module.exports = merge(common, devConfig);