Skip to content

Instantly share code, notes, and snippets.

@christophengelmayer
Last active January 21, 2020 21:35
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christophengelmayer/db1007b2d6a53b8b38ef7f5eb74582e9 to your computer and use it in GitHub Desktop.
Save christophengelmayer/db1007b2d6a53b8b38ef7f5eb74582e9 to your computer and use it in GitHub Desktop.
Neos CMS + webpack-dev-server
{
"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"
}
}
# Configuration/Development/Webpack/Settings.yaml
Neos:
Flow:
http:
baseUri: 'http://localhost:3000/'
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