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
|
// Copyright 2019 DXOS.org
|
||||||
//
|
//
|
||||||
|
|
||||||
const merge = require('webpack-merge');
|
const { merge } = require('webpack-merge');
|
||||||
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
||||||
|
|
||||||
const baseConfig = require('./webpack-common.config');
|
const baseConfig = require('./webpack-common.config');
|
||||||
|
@ -14,19 +14,24 @@ const CONFIG_FILE = path.relative('./src', process.env.CONFIG_FILE || 'config-lo
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
devtool: 'eval-source-map',
|
devtool: 'eval-source-map',
|
||||||
|
|
||||||
devServer: {
|
|
||||||
contentBase: path.join(__dirname, 'dist'),
|
|
||||||
compress: true,
|
|
||||||
disableHostCheck: true,
|
|
||||||
port: 8080,
|
|
||||||
watchOptions: {
|
watchOptions: {
|
||||||
ignored: /node_modules/,
|
ignored: /node_modules/,
|
||||||
aggregateTimeout: 600
|
aggregateTimeout: 600
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
node: {
|
devServer: {
|
||||||
fs: 'empty'
|
static: {
|
||||||
|
directory: path.join(__dirname, "dist")
|
||||||
|
},
|
||||||
|
compress: true,
|
||||||
|
allowedHosts: "all",
|
||||||
|
port: 8080
|
||||||
|
},
|
||||||
|
|
||||||
|
resolve: {
|
||||||
|
fallback: {
|
||||||
|
fs: false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
output: {
|
output: {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Copyright 2019 DXOS.org
|
// Copyright 2019 DXOS.org
|
||||||
//
|
//
|
||||||
|
|
||||||
const merge = require('webpack-merge');
|
const { merge } = require('webpack-merge');
|
||||||
const HtmlWebPackPlugin = require('html-webpack-plugin');
|
const HtmlWebPackPlugin = require('html-webpack-plugin');
|
||||||
|
|
||||||
const commonConfig = require('./webpack-common.config');
|
const commonConfig = require('./webpack-common.config');
|
||||||
|
Loading…
Reference in New Issue
Block a user