From a long discussion on #464, this issue will summarize. I'll soon be posting proposed changes to the README.md.
Demo: https://github.com/justin808/webpacker-demo-webpacker_lite-merge
Summary of changes
- Move base url out from manifest.json to manifest.rb
- Assign env variables to dev server settings so it can be overridden at runtime.
- The keys for dev_server should use same format as of now as documented in Paths on the README.md. Note that
hot is a new setting to indicate that the dev_server is used with hot reloading, which means that CSS should be inlined to be hot loaded.
- The presence of dev_server means that the webpack-dev-server is used for the given env.
development:
# put the created files to the /public/webpack/development directory
public_output_path: webpack/development
# if dev_server is not provided, then dev_server is not used
dev_server:
hot: true # This is a new setting
static: false
host: localhost
https: false
CC: @gauravtiwari
From a long discussion on #464, this issue will summarize. I'll soon be posting proposed changes to the README.md.
Demo: https://github.com/justin808/webpacker-demo-webpacker_lite-merge
Summary of changes
hotis a new setting to indicate that the dev_server is used with hot reloading, which means that CSS should be inlined to be hot loaded.CC: @gauravtiwari