From 46ee25fabfc3d2a4493004535774ddea1ad01c91 Mon Sep 17 00:00:00 2001 From: hellekin Date: Fri, 13 Nov 2020 00:07:11 +0100 Subject: Add leaflet plugin to fix webpack compatibility --- app/javascript/controllers/map_controller.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/javascript/controllers/map_controller.js b/app/javascript/controllers/map_controller.js index 5363e5e..2a2b310 100644 --- a/app/javascript/controllers/map_controller.js +++ b/app/javascript/controllers/map_controller.js @@ -7,14 +7,15 @@ // import { Controller } from "stimulus" -import L from "leaflet" import "leaflet/dist/leaflet.css" +import L from "leaflet" + export default class extends Controller { static targets = [ "container" ] initialize() { - console.log("Map controller initialized.") + } connect() { -- cgit v1.2.3