Running a new Sage 10 install setup appears to not work as it did for me on my previous Sage 10 test last weekβ¦
bud.config.js
:
/**
* @typedef {import('@roots/bud').Bud} bud
*
* @param {bud} app
*/
module.exports = async (app) => {
app
/**
* Application entrypoints
*
* Paths are relative to your resources directory
*/
.entry({
app: ['@scripts/app', '@styles/app'],
editor: ['@scripts/editor', '@styles/editor'],
})
/**
* These files should be processed as part of the build
* even if they are not explicitly imported in application assets.
*/
.assets('images')
/**
* These files will trigger a full page reload
* when modified.
*/
.watch('resources/views/**/*', 'app/**/*')
/**
* Target URL to be proxied by the dev server.
*
* This is your local dev server.
*/
.proxy('http://trellis.sageten2.build')
/**
* Development URL
*/
.serve('http://localhost:2222');
};
yarn build
:
yarn run v1.22.17
$ bud build
[10%] [building] import loader ./node_modules/mini-css-extract-plugin/dist/
[100%] Compiled
β assets βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β β
β app app.521c12.css 4.03 kB β
β runtime runtime.194772.js 1.24 kB β
β editor editor.5f39da.js 769 bytes β
β app app.f5abda.js 623 bytes β
β editor editor.31d6cf.css 0 bytes β
β α manifest.json 171 bytes β
β β α entrypoints.json 162 bytes β
β β α wordpress.json 33 bytes β
β β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
duration 2s 961ms (427ms + 2s 534ms)
mode production hash ae5ae51fbdbb41f02e06
bud 5.6.2 webpack 5.68.0
[99%] [cache] resolving snapshot build dependencies IdleFileCachePlugin shu
[99%] [cache] modules snapshot build dependencies IdleFileCachePlugin shutd
[100%] Compiled
β that's a wrap
β¨ Done in 5.28s.
yarn dev
:
yarn dev
yarn run v1.22.17
$ bud dev
[99%] [done] MultiCompiler plugins
β assets βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β β
β β vendor/bud.app.editor vendor/bud.app.editor.js 139.26 β
β kB β
β β app app.js 66.48 kB β
β β editor editor.js 57.51 kB β
β β α manifest.json 110 β
β bytes β
β β α entrypoints.json 109 β
β bytes β
β β α wordpress.json 33 bytes β
β β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
duration 2s 79ms
mode development hash 58f6f32db466f78a6f2a
bud 5.6.2 webpack 5.68.0
server url: http://localhost:51808/
proxy url: http://trellis.sageten2.build/
[100%] Compiled
Itβs assigning a random port to the server url.
localhost:2222
resolves in the browser with:
SSH-2.0-OpenSSH_8.2p1
Invalid SSH identification string.
The assigned port: http://localhost:51808
does not resolve at all.
After a minute or two, it resolves with Error occurred while trying to proxy: localhost:51808/
I tried changing my chosen 2222
port to 51808
and re-ran yarn dev
but it still wonβt resolve.
trellis.sageten2.build
resolves fine.
Per the docs:
After removing this line and running yarn dev
, the output is:
yarn dev
yarn run v1.22.17
$ bud dev
[99%] [done] MultiCompiler plugins
β assets βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β β
β β vendor/bud.app.editor vendor/bud.app.editor.js 139.26 β
β kB β
β β app app.js 66.48 kB β
β β editor editor.js 57.51 kB β
β β α manifest.json 110 β
β bytes β
β β α entrypoints.json 109 β
β bytes β
β β α wordpress.json 33 bytes β
β β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
duration 2s 77ms
mode development hash 58f6f32db466f78a6f2a
bud 5.6.2 webpack 5.68.0
server url: http://localhost:51844/
proxy url: http://trellis.sageten2.build/
[100%] Compiled
New random port that wonβt resolve:
http://localhost:51844/