forked from cerc-io/laconic-console
Update config to suit current webpack
This commit is contained in:
parent
a7aaf88d88
commit
2e4f0827d1
@ -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');
|
||||
|
@ -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: {
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user