Update config to suit current webpack

This commit is contained in:
David Boreham 2023-03-19 19:11:48 -06:00
parent a7aaf88d88
commit 2e4f0827d1
3 changed files with 18 additions and 13 deletions

View File

@ -2,7 +2,7 @@
// Copyright 2019 DXOS.org
//
const merge = require('webpack-merge');
const { merge } = require('webpack-merge');
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const baseConfig = require('./webpack-common.config');

View File

@ -14,19 +14,24 @@ const CONFIG_FILE = path.relative('./src', process.env.CONFIG_FILE || 'config-lo
module.exports = {
devtool: 'eval-source-map',
devServer: {
contentBase: path.join(__dirname, 'dist'),
compress: true,
disableHostCheck: true,
port: 8080,
watchOptions: {
ignored: /node_modules/,
aggregateTimeout: 600
}
},
node: {
fs: 'empty'
devServer: {
static: {
directory: path.join(__dirname, "dist")
},
compress: true,
allowedHosts: "all",
port: 8080
},
resolve: {
fallback: {
fs: false
}
},
output: {

View File

@ -2,7 +2,7 @@
// Copyright 2019 DXOS.org
//
const merge = require('webpack-merge');
const { merge } = require('webpack-merge');
const HtmlWebPackPlugin = require('html-webpack-plugin');
const commonConfig = require('./webpack-common.config');