mirror of
https://github.com/streamwall/streamwall.git
synced 2025-12-06 01:45:37 -05:00
Update build scripts for multiple webpack entrypoints, add file-based build caching, set build mode to none
This commit is contained in:
@@ -4,7 +4,10 @@
|
||||
"description": "View streams in a grid",
|
||||
"main": "./.webpack/main",
|
||||
"scripts": {
|
||||
"build": "webpack",
|
||||
"build:main": "webpack --config webpack.main.config.js",
|
||||
"build:renderer": "webpack --config webpack.renderer.config.js",
|
||||
"build:web": "webpack --config webpack.web.config.js",
|
||||
"build": "npm run build:main & npm run build:renderer & npm run build:web",
|
||||
"prune": "rm -rf dist",
|
||||
"start": "electron-forge start",
|
||||
"start-local": "npm run build -- --stats=errors-only && electron dist --control.address=http://localhost:4444 --control.username=streamwall --control.password=local-dev",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
module.exports = ({ babel }) => ({
|
||||
mode: 'none',
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
@@ -45,5 +46,8 @@ module.exports = ({ babel }) => ({
|
||||
reasons: true,
|
||||
errorDetails: true,
|
||||
warnings: true,
|
||||
}
|
||||
},
|
||||
cache: {
|
||||
type: 'filesystem',
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user