mirror of
https://github.com/streamwall/streamwall.git
synced 2025-12-06 01:45:37 -05:00
Fix webpack config causing web bundle to not run
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
const nodeExternals = require('webpack-node-externals');
|
||||
|
||||
module.exports = ({ babel }) => ({
|
||||
externals: [nodeExternals()],
|
||||
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
|
||||
devtool: process.env.NODE_ENV === 'production' ? 'source-map' : 'eval-source-map',
|
||||
module: {
|
||||
@@ -49,12 +46,6 @@ module.exports = ({ babel }) => ({
|
||||
http: require.resolve("stream-http")
|
||||
}
|
||||
},
|
||||
optimization: {
|
||||
moduleIds: 'deterministic',
|
||||
splitChunks: {
|
||||
chunks: 'all',
|
||||
},
|
||||
},
|
||||
stats: {
|
||||
colors: true,
|
||||
modules: true,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const path = require('path');
|
||||
const nodeExternals = require('webpack-node-externals');
|
||||
const baseConfig = require('./webpack.base.config')
|
||||
|
||||
module.exports = {
|
||||
@@ -15,6 +16,7 @@ module.exports = {
|
||||
],
|
||||
},
|
||||
}),
|
||||
externals: [nodeExternals()],
|
||||
entry: './src/node/main.js',
|
||||
output: {
|
||||
path: path.resolve(__dirname, '.webpack/main'),
|
||||
|
||||
Reference in New Issue
Block a user