Last active
January 21, 2020 21:35
-
-
Save christophengelmayer/db1007b2d6a53b8b38ef7f5eb74582e9 to your computer and use it in GitHub Desktop.
Neos CMS + webpack-dev-server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"build": "webpack", | |
"production": "NODE_ENV=production webpack", | |
"watch": "./flow server:run & webpack --watch", | |
"serve": "FLOW_CONTEXT=Development/Webpack ./flow server:run & webpack-dev-server --color" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration/Development/Webpack/Settings.yaml | |
Neos: | |
Flow: | |
http: | |
baseUri: 'http://localhost:3000/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
// [...] | |
devServer: { | |
publicPath: '/_Resources/Static/Packages/Your.Site/bundle/', // webpack output is served from this path | |
port: 3000, | |
proxy: [ | |
{ | |
context: "/", | |
target: "http://127.0.0.1:8081", | |
} | |
] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment