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 }) => ({
|
module.exports = ({ babel }) => ({
|
||||||
externals: [nodeExternals()],
|
|
||||||
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
|
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
|
||||||
devtool: process.env.NODE_ENV === 'production' ? 'source-map' : 'eval-source-map',
|
devtool: process.env.NODE_ENV === 'production' ? 'source-map' : 'eval-source-map',
|
||||||
module: {
|
module: {
|
||||||
@@ -49,12 +46,6 @@ module.exports = ({ babel }) => ({
|
|||||||
http: require.resolve("stream-http")
|
http: require.resolve("stream-http")
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
optimization: {
|
|
||||||
moduleIds: 'deterministic',
|
|
||||||
splitChunks: {
|
|
||||||
chunks: 'all',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
stats: {
|
stats: {
|
||||||
colors: true,
|
colors: true,
|
||||||
modules: true,
|
modules: true,
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const nodeExternals = require('webpack-node-externals');
|
||||||
const baseConfig = require('./webpack.base.config')
|
const baseConfig = require('./webpack.base.config')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
@@ -15,6 +16,7 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
externals: [nodeExternals()],
|
||||||
entry: './src/node/main.js',
|
entry: './src/node/main.js',
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, '.webpack/main'),
|
path: path.resolve(__dirname, '.webpack/main'),
|
||||||
|
|||||||
Reference in New Issue
Block a user