mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-31 01:12:48 -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",
|
"description": "View streams in a grid",
|
||||||
"main": "./.webpack/main",
|
"main": "./.webpack/main",
|
||||||
"scripts": {
|
"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",
|
"prune": "rm -rf dist",
|
||||||
"start": "electron-forge start",
|
"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",
|
"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 }) => ({
|
module.exports = ({ babel }) => ({
|
||||||
|
mode: 'none',
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
@@ -45,5 +46,8 @@ module.exports = ({ babel }) => ({
|
|||||||
reasons: true,
|
reasons: true,
|
||||||
errorDetails: true,
|
errorDetails: true,
|
||||||
warnings: true,
|
warnings: true,
|
||||||
}
|
},
|
||||||
|
cache: {
|
||||||
|
type: 'filesystem',
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user