mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-28 22:30:40 -04:00
chore(deps): update dependency webpack-cli to v4.x
for webpack 5 compatibility
This commit is contained in:
parent
67521316f4
commit
89f83f7434
3 changed files with 219 additions and 541 deletions
|
@ -5,11 +5,6 @@ const TerserPlugin = require('terser-webpack-plugin');
|
|||
|
||||
const base = {
|
||||
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
|
||||
devServer: {
|
||||
contentBase: false,
|
||||
host: '0.0.0.0',
|
||||
port: process.env.PORT || 8073
|
||||
},
|
||||
devtool: 'cheap-module-source-map',
|
||||
output: {
|
||||
library: 'VirtualMachine',
|
||||
|
@ -85,6 +80,11 @@ module.exports = [
|
|||
// Playground
|
||||
defaultsDeep({}, base, {
|
||||
target: 'web',
|
||||
devServer: {
|
||||
contentBase: false,
|
||||
host: '0.0.0.0',
|
||||
port: process.env.PORT || 8073
|
||||
},
|
||||
entry: {
|
||||
'benchmark': './src/playground/benchmark',
|
||||
'video-sensing-extension-debug': './src/extensions/scratch3_video_sensing/debug'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue