An Emacs mode for controlling webpack-dev-server

View the Project on GitHub creichert/webpack-dev-server.el


Emacs mode to help you manage webpack-dev-server


Clone the package:

$ git clone https://github.com/creichert/webpack-dev-server.el

webpack-dev-server.el does not require any configuration. By default, you can load the mode and run M-x webpack-dev-server and everything will “just work” if webpack-dev-server is configured on your machine properly.

The following example shows how to customize webpack-dev-server.el with projectile:

(use-package webpack-dev-server
  :load-path "site-lisp/webpack-dev-server.el"
  :commands (webpack-dev-server)

  ;; Use any custom command to launch webpack
  (webpack-dev-server-command  "make webpack-dev-server")

  ;; Always run webpack-dev-server from projectile-project-root
  (use-package projectile :demand :ensure t)
  (setq webpack-dev-server-project-root (projectile-project-root))

  ;; Binding within projectile-mode-map is not required,
  ;; but I primarily use webpack-dev-server inside
  ;; projectile projects
  :bind (:map projectile-mode-map
              ("C-c w p" . webpack-dev-server)
              ("C-c w k" . webpack-dev-server-stop)
              ("C-c w b" . webpack-dev-server-browse)))



Let’s connect:  ·  creichert.io  ·  GitHub  ·  Twitter