I have a apache running via XAMPP. In my htdocs I have different wordpress sites. For the second time I am setting up one with Sage 9. The first time (9.0.0-beta.2) it worked quite well, but I don’t get the second one (9.0.0-beta.3) up and running.
The problem seems to be that the build folder does not get created on yarn run start.
When Browsersync opens the site, I see http://localhost:3000/ref/
but the css does not get injected and the scripts.js
file is not found (well I guess because there is no dist folder)
Also, when I click on a link (e.g. a page or a post) a empty site opens. Earlier i was redirected to XAMPP Dashboard, but I disabled that in the htdocs/index.php
file.
Here’s my config:
{ "entry": { "main": [ "./scripts/main.js", "./styles/main.scss" ], "customizer": [ "./scripts/customizer.js" ], "scripts": [ "./scripts/scripts.js" ] }, "publicPath": "/ref/wp-content/themes/ref/", "devUrl": "http://localhost/ref/", "proxyUrl": "http://localhost:3000", "cacheBusting": "[name]_[hash:8]", "watch": [ "{app,resources/views}/**/*.php" ], "browsers": [ "last 2 versions", "android 4", "opera 12" ] }
I feel like I might be doing something wrong here.
btw: The scripts.js
file is located in the resources/assets/scripts folder and is enqueued in the setup.php. I don’t think that this is the source of the problem.
Do you see what I’m doing wrong? If you need any further information, let me know.