1.在blog项目下新建webpacker.yml文件
2.将以下内容复制进去
#Note: You must restart bin/webpack-dev-server for changes to take effect
default: &default
source_path: app/packs
source_entry_path: entrypoints
public_root_path: public
public_output_path: packs
cache_path: tmp/cache/webpacker
webpack_compile_output: true
#Additional paths webpack should look up modules
#[‘app/assets’, ‘engine/foo/app/assets’]
additional_paths: []
#Reload manifest.json on all requests so we reload latest compiled packs
cache_manifest: false
development:
<<: *default
compile: true
#Reference: https://webpack.js.org/configuration/dev-server/
dev_server:
https: false
host: localhost
port: 3035
public: localhost:3035
# Inject browserside javascript that required by both HMR and Live(full) reload
inject_client: true
#Hot Module Replacement updates modules w