-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Virtual Hosts using Laragon #468
Comments
@adrianratajczak thanks for the feedback @jakub300 can you take a look what could be a problem here? Thanks |
Hi @adrianratajczak, Dev server expects WordPress on the top level directory on the domain, not Second option is adjusting path where scripts/styles are served on dev server, this can be done by adding special hook to object exported from module.exports = {
// ...
hooks: {
wordPress: {
devMiddlewareOptions(config) {
config.publicPath = `/wp${config.publicPath}`;
},
},
},
}; Dev server stores files in memory (except from assets manifest that's read by WP), so it's expected that you cannot see them in file system. |
Hi @jakub300 , After adding the hook from above nothing changed. Still, page served from BrowserSync is without any styles and scripts My Chisel config file
|
Hi!
In my work environment, I use the latest version of Windows 10 and Laragon for PHP, MySQL, etc. Laragon also allows you to create virtual hosts using node.js.
I installed Chisel, then created the project and had access to it through *.test/wp domain
Then I ran the npm run dev command and here my problem started.
WordPress in the localhost:3000 domain was left without style, the webpack did not build saved changes to the files even though it claims otherwise. In short, src files were not used.
My only option was to use npm run build which works perfectly.
I use the latest version of Chisel using Webpack.
I don't know where the problem occurred
The text was updated successfully, but these errors were encountered: