Super fast dev workflow with self contained vue components + hot module replacement.
bundle installnpm install./bin/webpack-dev-server
Not required reading but useful for context. This project combines code from:
with a bit of tinkering to get them to play nice together.
From here:
rails webpacker:installrails webpacker:install:vue
This created a separate non-rails project containing some of the config files we need.
From here:
npm install -g vue-clivue init webpack-simple hellocd hellonpm install
- Copied the
rulessection fromwebpack.config.js:12toshared.jsin rails app. - Added the --hot flag to
/bin/webpack-dev-server:31. - Added
publicPath: 'http://localhost:8080/'toshared.js:26to fix a compilation bug.
